Skip to content
Browse files

Use only new style classes

  • Loading branch information...
1 parent 16b6eef commit 18847d037c2e023a49dd4318adf16d442b6d4844 @haypo committed Mar 21, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 sandbox/attributes.py
  2. +1 −1 sandbox/recursion.py
  3. +1 −1 sandbox/restorable_dict.py
  4. +1 −1 sandbox/sandbox_class.py
View
2 sandbox/attributes.py
@@ -13,7 +13,7 @@ def _clear_type_cache():
builtin_function = type(len)
-class HideAttributes:
+class HideAttributes(object):
"""
Hide unsafe frame attributes from the Python space
"""
View
2 sandbox/recursion.py
@@ -1,7 +1,7 @@
from __future__ import absolute_import
import sys
-class SetRecursionLimit:
+class SetRecursionLimit(object):
def __init__(self):
self.old_limit = sys.getrecursionlimit()
View
2 sandbox/restorable_dict.py
@@ -1,6 +1,6 @@
from __future__ import absolute_import
-class RestorableDict:
+class RestorableDict(object):
def __init__(self, dict):
self.dict = dict
self.original = {}
View
2 sandbox/sandbox_class.py
@@ -17,7 +17,7 @@ def _dictProxy(data):
for key, value in items:
data[proxy(key)] = proxy(value)
-class Sandbox:
+class Sandbox(object):
PROTECTIONS = []
def __init__(self, config=None):

0 comments on commit 18847d0

Please sign in to comment.
Something went wrong with that request. Please try again.