Permalink
Browse files

fixed some deprecated imports

  • Loading branch information...
1 parent d6e3f55 commit 55e002e722c850c7b7d36c50693739bd4d7c80e6 @timbertson committed Mar 18, 2012
Showing with 8 additions and 8 deletions.
  1. +5 −5 mocktest/__init__.py
  2. +1 −1 mocktest/core.py
  3. +2 −2 mocktest/transaction.py
View
@@ -50,8 +50,8 @@
:members:
"""
-from core import *
-from mocktest import *
-from mocking import *
-from matchers import *
-from callrecord import *
+from .core import *
+from .mocktest import *
+from .mocking import *
+from .matchers import *
+from .callrecord import *
View
@@ -6,6 +6,6 @@
__unittest = True
-from transaction import MockTransaction
+from .transaction import MockTransaction
_setup = MockTransaction.__enter__
_teardown = MockTransaction.__exit__
View
@@ -1,4 +1,4 @@
-from mockerror import MockError
+from .mockerror import MockError
__unittest = True
@@ -31,7 +31,7 @@ def __exit__(self, *optional_err_info):
for action in reversed(self.teardown_actions):
try:
action()
- except StandardError, e:
+ except StandardError as e:
errors.append(e)
self.teardown_actions = None
self.started = False

0 comments on commit 55e002e

Please sign in to comment.