Browse Source

Use new-style objects.

Michael Stone 13 years ago
parent
commit
1a003b7366
2 changed files with 5 additions and 5 deletions
  1. 3 3
      lib/chutney/Templating.py
  2. 2 2
      lib/chutney/TorNet.py

+ 3 - 3
lib/chutney/Templating.py

@@ -70,7 +70,7 @@ import os
 
 _KeyError = KeyError
 
-class _DictWrapper:
+class _DictWrapper(object):
     def __init__(self, parent=None):
         self._parent = parent
 
@@ -162,7 +162,7 @@ class _BetterTemplate(string.Template):
     def __init__(self, template):
         string.Template.__init__(self, template)
 
-class _FindVarsHelper:
+class _FindVarsHelper(object):
     def __init__(self, dflts):
         self._dflts = dflts
         self._vars = set()
@@ -173,7 +173,7 @@ class _FindVarsHelper:
         except KeyError:
             return ""
 
-class Template:
+class Template(object):
     MAX_ITERATIONS = 32
 
     def __init__(self, pattern, includePath=(".",)):

+ 2 - 2
lib/chutney/TorNet.py

@@ -26,7 +26,7 @@ def mkdir_p(d):
             return
         raise
 
-class Node:
+class Node(object):
     ########
     # Users are expected to call these:
     def __init__(self, parent=None, **kwargs):
@@ -314,7 +314,7 @@ class TorEnviron(chutney.Templating.Environ):
         return [ os.path.join(me['privnet_dir'], 'torrc_templates') ]
 
 
-class Network:
+class Network(object):
     def __init__(self,defaultEnviron):
         self._nodes = []
         self._dfltEnv = defaultEnviron