diff options
author | Paul McGuire <ptmcg@austin.rr.com> | 2012-11-23 08:54:10 +0000 |
---|---|---|
committer | Paul McGuire <ptmcg@austin.rr.com> | 2012-11-23 08:54:10 +0000 |
commit | 774e46526945ea91265734a2dc82d15eed515577 (patch) | |
tree | 734ae210c20a98f01fe029f7e6eeb7a93b4617fb /src/examples/httpServerLogParser.py | |
parent | 6b12041d4656f4cda910f24acda8d71013166fbd (diff) | |
download | pyparsing-git-774e46526945ea91265734a2dc82d15eed515577.tar.gz |
Clean up examples to be Python 3 compatible
Diffstat (limited to 'src/examples/httpServerLogParser.py')
-rw-r--r-- | src/examples/httpServerLogParser.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/httpServerLogParser.py b/src/examples/httpServerLogParser.py index 9f5584d..1a808ae 100644 --- a/src/examples/httpServerLogParser.py +++ b/src/examples/httpServerLogParser.py @@ -63,9 +63,9 @@ testdata = """ for line in testdata.split("\n"):
if not line: continue
fields = getLogLineBNF().parseString(line)
- print fields.dump()
+ print(fields.dump())
#~ print repr(fields)
#~ for k in fields.keys():
#~ print "fields." + k + " =", fields[k]
- print fields.asXML("LOG")
- print
+ print(fields.asXML("LOG"))
+ print()
|