[Yt-svn] commit/yt: MatthewTurk: Adding os.path.expanduser to load()
Bitbucket
commits-noreply at bitbucket.org
Thu Sep 22 15:22:30 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/d17d762b275b/
changeset: d17d762b275b
branch: yt
user: MatthewTurk
date: 2011-09-23 00:22:24
summary: Adding os.path.expanduser to load()
affected #: 1 file (-1 bytes)
--- a/yt/convenience.py Thu Sep 22 10:39:25 2011 -0700
+++ b/yt/convenience.py Thu Sep 22 18:22:24 2011 -0400
@@ -84,6 +84,8 @@
else:
return None
candidates = []
+ args = [os.path.expanduser(arg) if isinstance(arg, types.StringTypes)
+ else arg for arg in args]
for n, c in output_type_registry.items():
if n is None: continue
if c._is_valid(*args, **kwargs): candidates.append(n)
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