summaryrefslogtreecommitdiff
path: root/cmds.py
diff options
context:
space:
mode:
authorRichard Wilbur <richard.wilbur@gmail.com>2014-06-02 20:58:47 -0600
committerRichard Wilbur <richard.wilbur@gmail.com>2014-06-02 20:58:47 -0600
commit6978da619c1c9dbee6554ffa70484e48b7f1e9d1 (patch)
tree55f02323fb2f16cd6328112f7be61e402b0f74c2 /cmds.py
parentb7b3d7f360c9f8c0d7315aae56bca63ad9f48411 (diff)
parentb7e626f15fd3059686b8925b4e854568519fd92c (diff)
downloadbzr-fastimport-trunk.tar.gz
Fix bzr-fastimport when used with newer versions of python-fastimport.(Jelmer Vernooij)HEADtrunk
Diffstat (limited to 'cmds.py')
-rw-r--r--cmds.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmds.py b/cmds.py
index 1c143f8..c4a5a8a 100644
--- a/cmds.py
+++ b/cmds.py
@@ -19,7 +19,10 @@ from bzrlib import bzrdir
from bzrlib.commands import Command
from bzrlib.option import Option, ListOption, RegistryOption
-from bzrlib.plugins.fastimport import load_fastimport
+from bzrlib.plugins.fastimport import (
+ helpers,
+ load_fastimport,
+ )
def _run(source, processor_factory, verbose=False, user_map=None, **kwargs):
@@ -47,7 +50,6 @@ def _run(source, processor_factory, verbose=False, user_map=None, **kwargs):
def _get_source_stream(source):
if source == '-' or source is None:
import sys
- from fastimport import helpers
stream = helpers.binary_stream(sys.stdin)
elif source.endswith('.gz'):
import gzip