[Jython-checkins] jython: repr of stat result for os.stat, etc., should use dynamic type name

jim.baker jython-checkins at python.org
Tue Feb 3 03:05:58 CET 2015


https://hg.python.org/jython/rev/7b89227f4846
changeset:   7566:7b89227f4846
user:        Jim Baker <jim.baker at rackspace.com>
date:        Mon Feb 02 19:05:53 2015 -0700
summary:
  repr of stat result for os.stat, etc., should use dynamic type name

files:
  src/org/python/modules/posix/PyStatResult.java |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/org/python/modules/posix/PyStatResult.java b/src/org/python/modules/posix/PyStatResult.java
--- a/src/org/python/modules/posix/PyStatResult.java
+++ b/src/org/python/modules/posix/PyStatResult.java
@@ -237,7 +237,7 @@
     @Override
     public PyString __repr__() {
         return (PyString) Py.newString(
-                "posix.stat_result(" +
+                TYPE.fastGetName() + "(" +
                 "st_mode=%r, st_ino=%r, st_dev=%r, st_nlink=%r, st_uid=%r, "+
                 "st_gid=%r, st_size=%r, st_atime=%r, st_mtime=%r, st_ctime=%r)").__mod__(this);
     }

-- 
Repository URL: https://hg.python.org/jython


More information about the Jython-checkins mailing list