diff options
Diffstat (limited to 'src/examples/invRegex.py')
-rw-r--r-- | src/examples/invRegex.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/examples/invRegex.py b/src/examples/invRegex.py index 6493974..965fe8f 100644 --- a/src/examples/invRegex.py +++ b/src/examples/invRegex.py @@ -234,17 +234,17 @@ def main(): for t in tests:
t = t.strip()
if not t: continue
- print '-'*50
- print t
+ print('-'*50)
+ print(t)
try:
- print count(invert(t))
+ print(count(invert(t)))
for s in invert(t):
- print s
- except ParseFatalException,pfe:
- print pfe.msg
- print
+ print(s)
+ except ParseFatalException as pfe:
+ print(pfe.msg)
+ print()
continue
- print
+ print()
if __name__ == "__main__":
- main()
\ No newline at end of file + main()
|