summaryrefslogtreecommitdiff
path: root/pygments/unistring.py
diff options
context:
space:
mode:
authorBenjamin Peterson <devnull@localhost>2008-09-21 20:43:04 -0500
committerBenjamin Peterson <devnull@localhost>2008-09-21 20:43:04 -0500
commit6e735f945f1845566f9e5dbcf956b6d1c8f54916 (patch)
tree289c18c285ce89e58743b228fbcea73c3222c1b2 /pygments/unistring.py
parent179c00fef6ca282a523242a666889d94579cd436 (diff)
downloadpygments-6e735f945f1845566f9e5dbcf956b6d1c8f54916.tar.gz
open() should be used instead of file()
Diffstat (limited to 'pygments/unistring.py')
-rw-r--r--pygments/unistring.py4
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):