changeset 14362:8c740a850ad7

commands: replace 'x = f(); return x' with 'return f()'
author Martin Geisler <mg@lazybytes.net>
date Wed, 18 May 2011 19:25:34 +0200
parents ea7081645987
children 82f3b0f3f0a5
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Wed May 18 19:22:55 2011 +0200
+++ b/mercurial/commands.py	Wed May 18 19:25:34 2011 +0200
@@ -3204,8 +3204,7 @@
 
     repo._subtoppath = ui.expandpath(source)
     try:
-        ret = hg.incoming(ui, repo, source, opts)
-        return ret
+        return hg.incoming(ui, repo, source, opts)
     finally:
         del repo._subtoppath
 
@@ -3544,8 +3543,7 @@
 
     repo._subtoppath = ui.expandpath(dest or 'default-push', dest or 'default')
     try:
-        ret = hg.outgoing(ui, repo, dest, opts)
-        return ret
+        return hg.outgoing(ui, repo, dest, opts)
     finally:
         del repo._subtoppath