diff options
Diffstat (limited to 'Doc/library/fnmatch.rst')
-rw-r--r-- | Doc/library/fnmatch.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index 6ce5a1c..a75ca7c 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst @@ -51,7 +51,7 @@ patterns. for file in os.listdir('.'): if fnmatch.fnmatch(file, '*.txt'): - print file + print(file) .. function:: fnmatchcase(filename, pattern) @@ -78,7 +78,7 @@ patterns. >>> regex '.*\\.txt$' >>> reobj = re.compile(regex) - >>> print reobj.match('foobar.txt') + >>> print(reobj.match('foobar.txt')) <_sre.SRE_Match object at 0x...> |