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:
parent
c21d1f7925
commit
7094931c92
231 changed files with 474 additions and 67 deletions
|
|
@ -46,10 +46,10 @@ class VirtKeyboard(object):
|
|||
|
||||
self.bands = img.getbands()
|
||||
if isinstance(color, int) and not isinstance(self.bands, str) and len(self.bands) != 1:
|
||||
raise VirtKeyboardError("Color requires %i component but only 1 is provided" \
|
||||
raise VirtKeyboardError("Color requires %i component but only 1 is provided"
|
||||
% len(self.bands))
|
||||
if not isinstance(color, int) and len(color) != len(self.bands):
|
||||
raise VirtKeyboardError("Color requires %i components but %i are provided" \
|
||||
raise VirtKeyboardError("Color requires %i components but %i are provided"
|
||||
% (len(self.bands), len(color)))
|
||||
self.color = color
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ class VirtKeyboard(object):
|
|||
if dirname is None:
|
||||
dirname = tempfile.mkdtemp(prefix='weboob_session_')
|
||||
self.generate_MD5(dirname)
|
||||
raise VirtKeyboardError("Symbol '%s' not found; all symbol hashes are available in %s"\
|
||||
raise VirtKeyboardError("Symbol '%s' not found; all symbol hashes are available in %s"
|
||||
% (s, dirname))
|
||||
|
||||
def generate_MD5(self, dir):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue