# HG changeset patch # User Martin Geisler # Date 1305739534 -7200 # Node ID 8c740a850ad7ae378dc3d9f1374b190f144dba98 # Parent ea70816459876f69571fe9ce41cddfc32fd80fd5 commands: replace 'x = f(); return x' with 'return f()' diff -r ea7081645987 -r 8c740a850ad7 mercurial/commands.py --- 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