summaryrefslogtreecommitdiffstats
path: root/Doc/library/pyexpat.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/pyexpat.rst')
-rw-r--r--Doc/library/pyexpat.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/pyexpat.rst b/Doc/library/pyexpat.rst
index cfee364..fcb7705 100644
--- a/Doc/library/pyexpat.rst
+++ b/Doc/library/pyexpat.rst
@@ -494,11 +494,11 @@ arguments. ::
# 3 handler functions
def start_element(name, attrs):
- print 'Start element:', name, attrs
+ print('Start element:', name, attrs)
def end_element(name):
- print 'End element:', name
+ print('End element:', name)
def char_data(data):
- print 'Character data:', repr(data)
+ print('Character data:', repr(data))
p = xml.parsers.expat.ParserCreate()