migration.py
changeset 9740 c0239d8ae742
parent 9294 769b8867f8ce
child 9897 fa44db7da2dc
--- a/migration.py	Tue May 06 15:59:39 2014 +0200
+++ b/migration.py	Mon May 12 12:37:19 2014 +0200
@@ -247,12 +247,13 @@
         local_ctx = self._create_context()
         try:
             import readline
-            from rlcompleter import Completer
+            from cubicweb.toolsutils import CWShellCompleter
         except ImportError:
             # readline not available
             pass
         else:
-            readline.set_completer(Completer(local_ctx).complete)
+            rql_completer = CWShellCompleter(local_ctx)
+            readline.set_completer(rql_completer.complete)
             readline.parse_and_bind('tab: complete')
             home_key = 'HOME'
             if sys.platform == 'win32':