Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d5854c6

Browse files
committed
genutils.py => utils/genutils.py and updated imports and tests.
1 parent d37c42a commit d5854c6

52 files changed

Lines changed: 61 additions & 56 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

IPython/Extensions/InterpreterExec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def prefilter_shell(self,line,continuation):
5050

5151
# Provide pysh and further shell-oriented services
5252
import os,sys,shutil
53-
from IPython.genutils import system,shell,getoutput,getoutputerror
53+
from IPython.utils.genutils import system,shell,getoutput,getoutputerror
5454

5555
# Short aliases for getting shell output as a string and a list
5656
sout = getoutput

IPython/Extensions/ext_rescapture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010

1111
import IPython.ipapi
12-
from IPython.genutils import *
12+
from IPython.utils.genutils import *
1313

1414
ip = IPython.ipapi.get()
1515

IPython/Extensions/ipipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def sorted(iterator, key=None, reverse=False):
133133
from IPython.external import path
134134

135135
try:
136-
from IPython import genutils
136+
from IPython.utils import genutils
137137
from IPython.utils import generics
138138
except ImportError:
139139
genutils = None

IPython/Extensions/ipy_greedycompleter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212
from IPython import ipapi
1313
from IPython.utils import generics
14-
from IPython.genutils import dir2
14+
from IPython.utils.genutils import dir2
1515

1616
def attr_matches(self, text):
1717
"""Compute matches when text contains a dot.

IPython/Extensions/ipy_legacy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import os,sys
1616

17-
from IPython.genutils import *
17+
from IPython.utils.genutils import *
1818

1919
# use rehashx
2020

IPython/Extensions/ipy_pretty.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""
1818

1919
import IPython.ipapi
20-
from IPython.genutils import Term
20+
from IPython.utils.genutils import Term
2121

2222
from IPython.external import pretty
2323

IPython/Extensions/ipy_profile_sh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def slash_prefilter_f(self,line):
156156
157157
Removes the need for doing !./foo, !~/foo or !/bin/foo
158158
"""
159-
import IPython.genutils
159+
from IPython.utils import genutils
160160
if re.match('(?:[.~]|/[a-zA-Z_0-9]+)/', line):
161-
return "_ip.system(" + IPython.genutils.make_quoted_expr(line)+")"
161+
return "_ip.system(" + genutils.make_quoted_expr(line)+")"
162162
raise ipapi.TryNext
163163

164164
# XXX You do not need to understand the next function!

IPython/Extensions/ipy_pydb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import inspect
22
import IPython.ipapi
3-
from IPython.genutils import arg_split
3+
from IPython.utils.genutils import arg_split
44
ip = IPython.ipapi.get()
55

66
from IPython.core import debugger

IPython/Extensions/ipy_traits_completer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
# IPython imports
5555
from IPython.ipapi import TryNext, get as ipget
56-
from IPython.genutils import dir2
56+
from IPython.utils.genutils import dir2
5757
try:
5858
set
5959
except:

IPython/Extensions/jobctrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
import os,shlex,sys,time
4646
import threading,Queue
4747

48-
from IPython import genutils
48+
from IPython.utils import genutils
4949

5050
import IPython.ipapi
5151

0 commit comments

Comments
 (0)