Fix exec call for non-python-2.7
This commit is contained in:
parent
1351207462
commit
6c495374a0
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue