From b7e626f15fd3059686b8925b4e854568519fd92c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 15 May 2014 11:26:03 +0200 Subject: Import helper functions that have been removed from python-fastimport. --- cmds.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmds.py') 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 -- cgit v1.2.1