mercurial/ui.py
changeset 8220 6e6ebeb52899
parent 8208 32a2a1e244f1
child 8222 d30a21594812
--- a/mercurial/ui.py	Mon Apr 27 09:12:07 2009 +0200
+++ b/mercurial/ui.py	Mon Apr 27 10:33:57 2009 +0200
@@ -35,7 +35,7 @@
             for f in util.rcpath():
                 self.readconfig(f, trust=True)
     def copy(self):
-        return ui(self)
+        return self.__class__(self)
 
     def _is_trusted(self, fp, f):
         st = util.fstat(fp)