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:
Laurent Bachelier 2014-10-10 22:20:05 +02:00
commit e783f2c821
10 changed files with 22 additions and 13 deletions

View file

@ -44,7 +44,8 @@ class Captcha(object):
self.tiles = [[Tile(y * self.nbc + x) for y in xrange(4)] for x in xrange(4)]
def __getitem__(self, (x, y)):
def __getitem__(self, coords):
x, y = coords
return self.inmat[x % self.nx, y % self.ny]
def all_coords(self):