[Yt-svn] commit/yt: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Mon May 2 08:50:56 PDT 2011


2 new changesets in yt:

http://bitbucket.org/yt_analysis/yt/changeset/fbe71359e7bf/
changeset:   r4229:fbe71359e7bf
branch:      yt
user:        sskory
date:        2011-05-02 17:49:51
summary:     Prevent a NameError crash on systems where the resource module does not build correctly.
affected #:  1 file (52 bytes)

--- a/yt/funcs.py	Sun May 01 22:23:11 2011 -0400
+++ b/yt/funcs.py	Mon May 02 09:49:51 2011 -0600
@@ -124,7 +124,10 @@
     """
     Returning resident size in megabytes
     """
-    pagesize = resource.getpagesize()
+    try:
+        pagesize = resource.getpagesize()
+    except NameError:
+        return 0
     pid = os.getpid()
     status_file = "/proc/%s/statm" % (pid)
     if not os.path.isfile(status_file):


http://bitbucket.org/yt_analysis/yt/changeset/9b4ff0766c9c/
changeset:   r4230:9b4ff0766c9c
branch:      stable
user:        sskory
date:        2011-05-02 17:50:46
summary:     Prevent a NameError crash on systems where the resource module does not build correctly.
affected #:  1 file (52 bytes)

--- a/yt/funcs.py	Wed Apr 27 15:02:53 2011 -0400
+++ b/yt/funcs.py	Mon May 02 09:50:46 2011 -0600
@@ -124,7 +124,10 @@
     """
     Returning resident size in megabytes
     """
-    pagesize = resource.getpagesize()
+    try:
+        pagesize = resource.getpagesize()
+    except NameError:
+        return 0
     pid = os.getpid()
     status_file = "/proc/%s/statm" % (pid)
     if not os.path.isfile(status_file):

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