Merge lp:~mordred/swift/fix-pep8 into lp:~hudson-openstack/swift/trunk
| Status: | Merged |
|---|---|
| Approved by: | Monty Taylor on 2010-07-26 |
| Approved revision: | 42 |
| Merged at revision: | 42 |
| Proposed branch: | lp:~mordred/swift/fix-pep8 |
| Merge into: | lp:~hudson-openstack/swift/trunk |
| Diff against target: |
592 lines (+102/-56) 17 files modified
swift/account/reaper.py (+5/-3) swift/account/server.py (+6/-8) swift/auth/server.py (+3/-4) swift/common/__init__.py (+0/-1) swift/common/auth.py (+1/-0) swift/common/bufferedhttp.py (+1/-0) swift/common/client.py (+5/-4) swift/common/db.py (+2/-0) swift/common/db_replicator.py (+3/-1) swift/common/exceptions.py (+26/-7) swift/common/healthcheck.py (+1/-0) swift/common/ring/ring.py (+2/-0) swift/common/utils.py (+3/-1) swift/common/wsgi.py (+5/-1) swift/obj/replicator.py (+35/-24) swift/obj/server.py (+1/-0) swift/proxy/server.py (+3/-2) |
| To merge this branch: | bzr merge lp:~mordred/swift/fix-pep8 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Chuck Thier (community) | Approve on 2010-07-26 | ||
| gholt (community) | 2010-07-25 | Approve on 2010-07-26 | |
|
Review via email:
|
|||
Commit Message
Fixed PEP8 warnings
Description of the Change
Went through and fixed all of the PEP8 warnings. There is one warning that
is crap and we should submit a bug to pep8 - lambda *exc_info: gets pinged
with "space needed around operator" - except that the * isn't an operator,
it's an argument modifier. I suppose the other approach would be to go ahead
and stop using lamba since it's gone in py3 anyway...
| Monty Taylor (mordred) wrote : | # |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/26/2010 07:27 AM, gholt wrote:
> Review: Approve
> Lambda's gone in Python 3? You made me cry a little, but I still see it at http://
>
> Thanks for doing this PEP8 stuff. It's about as much fun as eating poi. I know, I've been through this codebase before trying to PEP8 it. :)
>
> This looks good, with the really minor nit on the last change where I don't think you need the +
>
Oh balls. I thought I'd gotten rid of the string +'s. Thanks - I'll fix
that.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkx
Jw8AoK/
=kGKZ
-----END PGP SIGNATURE-----
- 42. By Monty Taylor on 2010-07-26
-
Removed needless continuation markers.
| Chuck Thier (cthier) wrote : | # |
Looks fine to me as well, unit tests and functional tests pass on my VM.


Lambda's gone in Python 3? You made me cry a little, but I still see it at http:// docs.python. org/py3k/ reference/ expressions. html#lambda
Thanks for doing this PEP8 stuff. It's about as much fun as eating poi. I know, I've been through this codebase before trying to PEP8 it. :)
This looks good, with the really minor nit on the last change where I don't think you need the +