summaryrefslogtreecommitdiff
path: root/Doc/library/sched.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/sched.rst')
-rw-r--r--Doc/library/sched.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/sched.rst b/Doc/library/sched.rst
index bb15c76992..e0007fc6fc 100644
--- a/Doc/library/sched.rst
+++ b/Doc/library/sched.rst
@@ -52,14 +52,14 @@ Example::
>>> import time
>>> from threading import Timer
>>> def print_time():
- ... print "From print_time", time.time()
+ ... print("From print_time", time.time())
...
>>> def print_some_times():
- ... print time.time()
+ ... print(time.time())
... Timer(5, print_time, ()).start()
... Timer(10, print_time, ()).start()
... time.sleep(11) # sleep while time-delay events execute
- ... print time.time()
+ ... print(time.time())
...
>>> print_some_times()
930343690.257