##// END OF EJS Templates
Delete all references to old IPython.external.guid...
Thomas Spura -
Show More
@@ -22,13 +22,13 b' from twisted.python.failure import Failure'
22 from zope.interface import implements, classProvides
22 from zope.interface import implements, classProvides
23
23
24 # From IPython
24 # From IPython
25 from IPython.external import guid
26
27 from IPython.frontend.frontendbase import (FrontEndBase, IFrontEnd,
25 from IPython.frontend.frontendbase import (FrontEndBase, IFrontEnd,
28 IFrontEndFactory)
26 IFrontEndFactory)
29 from IPython.kernel.core.history import FrontEndHistory
27 from IPython.kernel.core.history import FrontEndHistory
30 from IPython.kernel.engineservice import IEngineCore
28 from IPython.kernel.engineservice import IEngineCore
31
29
30 import uuid
31
32 #-----------------------------------------------------------------------------
32 #-----------------------------------------------------------------------------
33 # Classes and functions
33 # Classes and functions
34 #-----------------------------------------------------------------------------
34 #-----------------------------------------------------------------------------
@@ -67,7 +67,7 b' class AsyncFrontEndBase(FrontEndBase):'
67 return Failure(Exception("Block is not compilable"))
67 return Failure(Exception("Block is not compilable"))
68
68
69 if(blockID == None):
69 if(blockID == None):
70 blockID = guid.generate()
70 blockID = uuid.uuid4()
71
71
72 d = self.engine.execute(block)
72 d = self.engine.execute(block)
73 d.addCallback(self._add_history, block=block)
73 d.addCallback(self._add_history, block=block)
@@ -26,7 +26,7 b' __docformat__ = "restructuredtext en"'
26
26
27 import sys
27 import sys
28 import objc
28 import objc
29 from IPython.external import guid
29 import uuid
30
30
31 from Foundation import NSObject, NSMutableArray, NSMutableDictionary,\
31 from Foundation import NSObject, NSMutableArray, NSMutableDictionary,\
32 NSLog, NSNotificationCenter, NSMakeRange,\
32 NSLog, NSNotificationCenter, NSMakeRange,\
@@ -361,7 +361,7 b' class IPythonCocoaController(NSObject, AsyncFrontEndBase):'
361
361
362 def next_block_ID(self):
362 def next_block_ID(self):
363
363
364 return guid.generate()
364 return uuid.uuid4()
365
365
366 def new_cell_block(self):
366 def new_cell_block(self):
367 """A new CellBlock at the end of self.textView.textStorage()"""
367 """A new CellBlock at the end of self.textView.textStorage()"""
@@ -22,7 +22,7 b' __docformat__ = "restructuredtext en"'
22 #-------------------------------------------------------------------------------
22 #-------------------------------------------------------------------------------
23 import string
23 import string
24 import codeop
24 import codeop
25 from IPython.external import guid
25 import uuid
26
26
27
27
28 from IPython.frontend.zopeinterface import (
28 from IPython.frontend.zopeinterface import (
@@ -242,7 +242,7 b' class FrontEndBase(object):'
242 raise Exception("Block is not compilable")
242 raise Exception("Block is not compilable")
243
243
244 if(blockID == None):
244 if(blockID == None):
245 blockID = guid.generate()
245 blockID = uuid.uuid4()
246
246
247 try:
247 try:
248 result = self.shell.execute(block)
248 result = self.shell.execute(block)
General Comments 0
You need to be logged in to leave comments. Login now