changelog: remove redundant parentheses
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 27 Feb 2016 22:25:47 -0800
changeset 28282 d698c11bd189
parent 28281 4ef967661751
child 28283 544444991c83
changelog: remove redundant parentheses You don't need to surround returned tuples with parens.
mercurial/changelog.py
--- a/mercurial/changelog.py	Sat Feb 27 23:06:05 2016 -0800
+++ b/mercurial/changelog.py	Sat Feb 27 22:25:47 2016 -0800
@@ -337,7 +337,7 @@
         """
         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 @@
             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):
         """