changeset 28282:d698c11bd189

changelog: remove redundant parentheses You don't need to surround returned tuples with parens.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 27 Feb 2016 22:25:47 -0800
parents 4ef967661751
children 544444991c83
files mercurial/changelog.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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):
         """