Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 1559:59b3639df0a9
Convert all classes to new-style classes by deriving them from object.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Fri, 18 Nov 2005 22:48:47 -0800 |
parents | 7509fa02437f |
children | 6efad1cc07de |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Nov 17 19:38:57 2005 +0100 +++ b/mercurial/commands.py Fri Nov 18 22:48:47 2005 -0800 @@ -678,7 +678,7 @@ dest = os.path.realpath(dest) - class Dircleanup: + class Dircleanup(object): def __init__(self, dir_): self.rmtree = shutil.rmtree self.dir_ = dir_ @@ -1188,7 +1188,7 @@ yield linenum, mstart - lstart, mend - lstart, body[lstart:lend] begin = lend + 1 - class linestate: + class linestate(object): def __init__(self, line, linenum, colstart, colend): self.line = line self.linenum = linenum @@ -1479,7 +1479,7 @@ -v switch adds some more detail, such as changed files, manifest hashes or message signatures. """ - class dui: + class dui(object): # Implement and delegate some ui protocol. Save hunks of # output for later display in the desired order. def __init__(self, ui):