Merge pull request #2612 from kijeong/request

Don't shadow built-in dict.
This commit is contained in:
wiredfool 2017-07-06 10:59:01 +01:00 committed by GitHub
commit 912b0f077a

View File

@ -37,11 +37,11 @@ __version__ = "0.4"
# 4. page
# 5. page contents
def _obj(fp, obj, **dict):
def _obj(fp, obj, **dictionary):
fp.write("%d 0 obj\n" % obj)
if dict:
if dictionary:
fp.write("<<\n")
for k, v in dict.items():
for k, v in dictionary.items():
if v is not None:
fp.write("/%s %s\n" % (k, v))
fp.write(">>\n")