Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57fd362 commit a42ae7fCopy full SHA for a42ae7f
1 file changed
lib/matplotlib/backends/backend_pdf.py
@@ -398,10 +398,14 @@ def __init__(self, filename):
398
'Pages': self.pagesObject }
399
self.writeObject(self.rootObject, root)
400
401
- revision = '$Rev$'.strip('$').split(':')[1].strip()
+ svn_special_string = '$Rev$' # on checkout, gets replaced by svn client
402
+ if ':' in svn_special_string:
403
+ revision = ' r'+svn_special_string.strip('$').split(':')[1].strip()
404
+ else:
405
+ revision = ''
406
self.infoDict = {
407
'Creator': 'matplotlib %s, http://matplotlib.sf.net' % __version__,
- 'Producer': 'matplotlib pdf backend r%s' % revision,
408
+ 'Producer': 'matplotlib pdf backend%s' % revision,
409
'CreationDate': datetime.today()
410
}
411
0 commit comments