[yt-svn] commit/yt: MatthewTurk: [gdf] Moving fileh.close() above return True in is_valid
    Bitbucket 
    commits-noreply at bitbucket.org
       
    Fri Jan 11 02:37:07 PST 2013
    
    
  
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/badabbdbcf91/
changeset:   badabbdbcf91
branch:      yt
user:        MatthewTurk
date:        2013-01-11 11:36:54
summary:     [gdf] Moving fileh.close() above return True in is_valid
affected #:  1 file
diff -r 213e0441991554ca0392e7e8a7905114cf06842b -r badabbdbcf91d76bacfb4ed8f7edb876556416e0 yt/frontends/gdf/data_structures.py
--- a/yt/frontends/gdf/data_structures.py
+++ b/yt/frontends/gdf/data_structures.py
@@ -247,8 +247,8 @@
         try:
             fileh = h5py.File(args[0],'r')
             if "gridded_data_format" in fileh:
+                fileh.close()
                 return True
-                fileh.close()
             fileh.close()
         except:
             pass
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