Skip to content

Commit

Permalink
Fix PEP8 compliance errors E501, E128 and E302.
Browse files Browse the repository at this point in the history
D'oh, I really should add a Vim hook to run the PEP8 checker everytime i
save a Python file...

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
  • Loading branch information
aszlig committed Jul 11, 2014
1 parent 5747d5e commit 6151b44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hetzner/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ def request(self, method, path, data=None, allow_empty=False):
raise RobotError(msg.format(response.status, repr(raw_data)))
else:
data = None
self.logger.debug("Got response from Robot with status %d and data %r.",
response.status, data)
self.logger.debug(
"Got response from Robot with status %d and data %r.",
response.status, data
)

if 200 <= response.status < 300:
return data
Expand Down
1 change: 1 addition & 0 deletions hetzner/tests/test_util_addr.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from hetzner.util.addr import *


class UtilAddrTestCase(unittest.TestCase):
def test_parse_ipv4(self):
self.assertEqual(parse_ipv4('174.26.72.88'), 2920958040)
Expand Down

0 comments on commit 6151b44

Please sign in to comment.