[yt-svn] commit/yt: xarthisius: Drop trailing . from image suffix
Bitbucket
commits-noreply at bitbucket.org
Mon Dec 17 10:13:14 PST 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/0a3348004c94/
changeset: 0a3348004c94
branch: yt
user: xarthisius
date: 2012-12-17 17:07:38
summary: Drop trailing . from image suffix
affected #: 1 file
diff -r 0bc5b45d3421fbe71246dc4de2a1c871fbf989bf -r 0a3348004c948192e81cd6d8972c9172bcc14b9c yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -574,5 +574,5 @@
return inv_axis_names.get(axis, axis)
def get_image_suffix(name):
- suffix = os.path.splitext(name)[1]
+ suffix = os.path.splitext(name)[1].lstrip('.')
return suffix if suffix in ['png', 'eps', 'ps', 'pdf'] else ''
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list