mercurial/util.py
changeset 8181 03d93882fc93
parent 8151 127281884959
child 8207 dd8d5be57d65
--- a/mercurial/util.py	Sun Apr 26 16:50:43 2009 -0500
+++ b/mercurial/util.py	Sun Apr 26 16:50:43 2009 -0500
@@ -14,7 +14,7 @@
 
 from i18n import _
 import cStringIO, errno, re, shutil, sys, tempfile, traceback, error
-import os, stat, threading, time, calendar, ConfigParser, glob, osutil
+import os, stat, threading, time, calendar, glob, osutil
 import imp
 
 # Python compatibility
@@ -118,23 +118,6 @@
     "%b %Y",
     )
 
-# differences from SafeConfigParser:
-# - case-sensitive keys
-# - allows values that are not strings (this means that you may not
-#   be able to save the configuration to a file)
-class configparser(ConfigParser.SafeConfigParser):
-    def optionxform(self, optionstr):
-        return optionstr
-
-    def set(self, section, option, value):
-        return ConfigParser.ConfigParser.set(self, section, option, value)
-
-    def _interpolate(self, section, option, rawval, vars):
-        if not isinstance(rawval, basestring):
-            return rawval
-        return ConfigParser.SafeConfigParser._interpolate(self, section,
-                                                          option, rawval, vars)
-
 def cachefunc(func):
     '''cache the result of function calls'''
     # XXX doesn't handle keywords args