summaryrefslogtreecommitdiff
path: root/fastimport/commands.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-11-06 18:06:28 +0100
committerJelmer Vernooij <jelmer@samba.org>2010-11-06 18:06:28 +0100
commit0afb861bc01c53df93dba7858a061d6c274d3151 (patch)
tree6041295d907a4112934e9a1b75f826ad19ce7f04 /fastimport/commands.py
parent7e50ee34850a0f5db87417b91a4a288268fb4664 (diff)
downloadpython-fastimport-0afb861bc01c53df93dba7858a061d6c274d3151.tar.gz
Fix tests.
Diffstat (limited to 'fastimport/commands.py')
-rw-r--r--fastimport/commands.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/fastimport/commands.py b/fastimport/commands.py
index 5c68a76..fe2379b 100644
--- a/fastimport/commands.py
+++ b/fastimport/commands.py
@@ -208,8 +208,7 @@ class CommitCommand(ImportCommand):
# file_iter may be a callable or an iterator
if callable(self.file_iter):
return self.file_iter()
- elif self.file_iter:
- return iter(self.file_iter)
+ return iter(self.file_iter)
class FeatureCommand(ImportCommand):