From 6c495374a033c4a74391ca7f5865997a0f6f106f Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 24 Mar 2013 20:03:09 +0400 Subject: [PATCH] Fix exec call for non-python-2.7 --- tests/lib/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/lib/__init__.py b/tests/lib/__init__.py index 7e47c7e2..03528cdb 100644 --- a/tests/lib/__init__.py +++ b/tests/lib/__init__.py @@ -20,9 +20,8 @@ class Pl(object): return self._cwd for meth in ('error', 'warn', 'debug'): - exec ('''def {0}(self, msg, *args, **kwargs): - self.{0}s.append((kwargs.get('prefix') or self.prefix, msg, args, kwargs)) - ''').format(meth) + exec (('def {0}(self, msg, *args, **kwargs):\n' + ' self.{0}s.append((kwargs.get("prefix") or self.prefix, msg, args, kwargs))\n').format(meth)) class Args(object):