Easy spacing fixes, trailing stuff

Remove useless trailing \
Remove trailing spaces
Add missing empty lines

autopep8 -ir -j2 --select=E301,E302,E502,W291,W293,W391 .

Diff quickly checked.
This commit is contained in:
Laurent Bachelier 2013-03-15 20:01:49 +01:00
commit 7094931c92
231 changed files with 474 additions and 67 deletions

View file

@ -26,8 +26,10 @@ try:
except ImportError:
raise ImportError('Please install python-imaging')
class CaptchaError(Exception): pass
class Tile(object):
hash = {
'bc8d52d96058478a6def26226145d53b': 'A',
@ -115,6 +117,7 @@ class Tile(object):
print 'hash: %s' % checksum
raise CaptchaError()
class Captcha(object):
def __init__(self, f):
self.img = Image.open(f)
@ -156,6 +159,7 @@ class Captcha(object):
s += tile.letter
return s
class Decoder(object):
def __init__(self):
self.hash = {}