Fixed an issue with return syntax that breaks in python 2.4
author |
Matthew Bell <m.dylan.bell@gmail.com> |
date |
Sat, 27 Aug 2011 16:38:43 -0700 |
parents |
9524242bda64
|
children |
91190e67720f
|
branches/tags |
(none) |
files |
autoload/gundo.py |
Changes
--- a/autoload/gundo.py Mon Aug 08 17:07:25 2011 -0400
+++ b/autoload/gundo.py Sat Aug 27 16:38:43 2011 -0700
@@ -553,7 +553,10 @@
return None
nodes.append(current)
- return reversed(nodes) if rev else nodes
+ if rev:
+ return reversed(nodes)
+ else:
+ return nodes
branch = _walk_branch(start, end)