changeset 1879:b7241c73c394

use more new-style classes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 22 Dec 2012 00:42:15 +0100
parents a890875ae2b3
children 445818dea4a4
files MoinMoin/_tests/test_error.py MoinMoin/auth/_tests/test_http.py MoinMoin/security/_tests/test_textcha.py
diffstat 3 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/test_error.py	Sat Dec 22 00:24:05 2012 +0100
+++ b/MoinMoin/_tests/test_error.py	Sat Dec 22 00:42:15 2012 +0100
@@ -30,9 +30,11 @@
 
     def testCreateWithObject(self):
         """ error: create with any object """
-        class Foo:
+
+        class Foo(object):
             def __unicode__(self):
                 return u'טעות'
+
             def __str__(self):
                 return 'טעות'
 
--- a/MoinMoin/auth/_tests/test_http.py	Sat Dec 22 00:24:05 2012 +0100
+++ b/MoinMoin/auth/_tests/test_http.py	Sat Dec 22 00:42:15 2012 +0100
@@ -14,7 +14,8 @@
 
 class TestHTTPAuthMoin(object):
     """ Test: HTTPAuthMoin """
-    class Auth:
+
+    class Auth(object):
         def __init__(self):
             self.username = 'ValidUser'
             self.password = 'test_pass'
--- a/MoinMoin/security/_tests/test_textcha.py	Sat Dec 22 00:24:05 2012 +0100
+++ b/MoinMoin/security/_tests/test_textcha.py	Sat Dec 22 00:42:15 2012 +0100
@@ -103,7 +103,7 @@
         cfg.secrets.pop('security/textcha')
         flaskg.user.profile[LOCALE] = None
 
-    class Element:
+    class Element(object):
         def __init__(self):
             self.parent = None
             self.value = 'Good Answer'