diff options
Diffstat (limited to 'pygments/unistring.py')
-rw-r--r-- | pygments/unistring.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/unistring.py b/pygments/unistring.py index 382d7f76..d324d844 100644 --- a/pygments/unistring.py +++ b/pygments/unistring.py @@ -95,7 +95,7 @@ if __name__ == '__main__': categories = {} - f = file(__file__) + f = open(__file__) try: content = f.read() finally: @@ -109,7 +109,7 @@ if __name__ == '__main__': cat = unicodedata.category(c) categories.setdefault(cat, []).append(c) - f = file(__file__, 'w') + f = open(__file__, 'w') f.write(header) for cat in sorted(categories): |