# HG changeset patch # User Gregory Szorc # Date 2016-02-28 06:25:47 # Node ID d698c11bd189e27f282da0d946d7f1878555c9c2 # Parent 4ef967661751d3c1e56d9fa75e76a116af465b66 changelog: remove redundant parentheses You don't need to surround returned tuples with parens. diff --git a/mercurial/changelog.py b/mercurial/changelog.py --- a/mercurial/changelog.py +++ b/mercurial/changelog.py @@ -337,7 +337,7 @@ class changelog(revlog.revlog): """ text = self.revision(node) if not text: - return (nullid, "", (0, 0), [], "", _defaultextra) + return nullid, "", (0, 0), [], "", _defaultextra last = text.index("\n\n") desc = encoding.tolocal(text[last + 2:]) l = text[:last].split('\n') @@ -358,7 +358,7 @@ class changelog(revlog.revlog): extra = decodeextra(tdata[2]) files = l[3:] - return (manifest, user, (time, timezone), files, desc, extra) + return manifest, user, (time, timezone), files, desc, extra def readfiles(self, node): """