AutoCad bugfix, minor name corrections

This commit is contained in:
Matthew Stamy 2013-11-13 16:49:57 -06:00
parent 9bf0e2112a
commit 5a359fb142
3 changed files with 3 additions and 3 deletions

View File

@ -339,8 +339,8 @@ def readStringFromStream(stream):
tok = b_(")")
elif tok == b_("\\"):
tok = b_("\\")
elif tok in (b_(" "), b_("/"), b_("%"), b_("<"), b_(">")):
# odd escape sequences we have encountered
elif tok in (b_(" "), b_("/"), b_("%"), b_("<"), b_(">"), b_("["), b_("]")):
# odd/unnessecary escape sequences we have encountered
tok = b_(tok)
elif tok.isdigit():
# "The number ddd may consist of one, two, or three

View File

@ -90,7 +90,7 @@ class PdfFileWriter(object):
# info object
info = DictionaryObject()
info.update({
NameObject("/Producer"): createStringObject(u"Python PDF Library - http://pybrary.net/pyPdf/")
NameObject("/Producer"): createStringObject(u"PyPDF2")
})
self._info = self._addObject(info)