summaryrefslogtreecommitdiff
path: root/pygments/lexers/_phpbuiltins.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/lexers/_phpbuiltins.py
parent179c00fef6ca282a523242a666889d94579cd436 (diff)
downloadpygments-6e735f945f1845566f9e5dbcf956b6d1c8f54916.tar.gz
open() should be used instead of file()
Diffstat (limited to 'pygments/lexers/_phpbuiltins.py')
-rw-r--r--pygments/lexers/_phpbuiltins.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/_phpbuiltins.py b/pygments/lexers/_phpbuiltins.py
index 5173b20d..5f8fa228 100644
--- a/pygments/lexers/_phpbuiltins.py
+++ b/pygments/lexers/_phpbuiltins.py
@@ -3373,7 +3373,7 @@ if __name__ == '__main__':
idx += 1
# extract useful sourcecode from this file
- f = file(__file__)
+ f = open(__file__)
try:
content = f.read()
finally:
@@ -3382,7 +3382,7 @@ if __name__ == '__main__':
footer = content[content.find("if __name__ == '__main__':"):]
# write new file
- f = file(__file__, 'w')
+ f = open(__file__, 'w')
f.write(header)
f.write('MODULES = %s\n\n' % pprint.pformat(modules))
f.write(footer)