]> granicus.if.org Git - python/commitdiff
Fix #1771558 (already fixed in trunk).
authorGeorg Brandl <georg@python.org>
Fri, 10 Aug 2007 17:29:51 +0000 (17:29 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 10 Aug 2007 17:29:51 +0000 (17:29 +0000)
Lib/lib-tk/turtle.py

index 01a55b1522df23b89de8c31d5c738fb2caaf98e2..fcde9af4ed4e6eb92c571b9707b269997f7be069 100644 (file)
@@ -15,6 +15,7 @@ pictures can easily be drawn.
 """
 
 from math import * # Also for export
+from time import sleep
 import Tkinter
 
 speeds = ['fastest', 'fast', 'normal', 'slow', 'slowest']
@@ -949,7 +950,6 @@ def demo2():
 
 
 if __name__ == '__main__':
-    from time import sleep
     demo()
     sleep(3)
     demo2()