Remove tuple method parameters
They can be found through autopep8 (W690) or python-modernize. Variables manually renamed. This is because Python 3 does not support tuple unpacking: http://legacy.python.org/dev/peps/pep-3113/
This commit is contained in:
parent
6161a0aacd
commit
e783f2c821
10 changed files with 22 additions and 13 deletions
|
|
@ -81,8 +81,9 @@ class Keyboard(VirtKeyboard):
|
|||
code += self.get_symbol_code(self.symbols[c])
|
||||
return code
|
||||
|
||||
def get_symbol_coords(self, (x1, y1, x2, y2)):
|
||||
def get_symbol_coords(self, coords):
|
||||
# strip borders
|
||||
x1, y1, x2, y2 = coords
|
||||
return VirtKeyboard.get_symbol_coords(self, (x1+3, y1+3, x2-3, y2-3))
|
||||
|
||||
class LoginPage(Page):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue