[yt-svn] commit/yt: xarthisius: [funcs:get_image_suffix] now returns extention prefixed by dot. Fixes #487
Bitbucket
commits-noreply at bitbucket.org
Wed Jan 16 05:59:11 PST 2013
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/04fa9a7d799c/
changeset: 04fa9a7d799c
branch: yt
user: xarthisius
date: 2013-01-16 14:41:08
summary: [funcs:get_image_suffix] now returns extention prefixed by dot. Fixes #487
affected #: 1 file
diff -r c3e7e785d51185a82787940a21e0a94e58d5f3d3 -r 04fa9a7d799c59d00469ee30cc3f91978eca3b46 yt/funcs.py
--- a/yt/funcs.py
+++ b/yt/funcs.py
@@ -587,5 +587,5 @@
return inv_axis_names.get(axis, axis)
def get_image_suffix(name):
- suffix = os.path.splitext(name)[1].lstrip('.')
- return suffix if suffix in ['png', 'eps', 'ps', 'pdf'] else ''
+ suffix = os.path.splitext(name)[1]
+ 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