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