Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

Commit

Permalink
Use only new style classes
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Mar 21, 2012
1 parent 16b6eef commit 18847d0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sandbox/attributes.py
Expand Up @@ -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
"""
Expand Down
2 changes: 1 addition & 1 deletion 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()

Expand Down
2 changes: 1 addition & 1 deletion 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 = {}
Expand Down
2 changes: 1 addition & 1 deletion sandbox/sandbox_class.py
Expand Up @@ -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):
Expand Down

0 comments on commit 18847d0

Please sign in to comment.