changeset 8181:03d93882fc93

util: kill configparser wrapper
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:43 -0500
parents 6fc30fe7f3e7
children b97abc7c1135
files mercurial/util.py
diffstat 1 files changed, 1 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- 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