Fix exec call for non-python-2.7

This commit is contained in:
ZyX 2013-03-24 20:03:09 +04:00
parent 1351207462
commit 6c495374a0
1 changed files with 2 additions and 3 deletions

View File

@ -20,9 +20,8 @@ class Pl(object):
return self._cwd return self._cwd
for meth in ('error', 'warn', 'debug'): for meth in ('error', 'warn', 'debug'):
exec ('''def {0}(self, msg, *args, **kwargs): exec (('def {0}(self, msg, *args, **kwargs):\n'
self.{0}s.append((kwargs.get('prefix') or self.prefix, msg, args, kwargs)) ' self.{0}s.append((kwargs.get("prefix") or self.prefix, msg, args, kwargs))\n').format(meth))
''').format(meth)
class Args(object): class Args(object):