[Jython-checkins] jython: Added missing get_magic() function to the imp module

alex.gronholm jython-checkins at python.org
Fri May 25 13:38:23 CEST 2012


http://hg.python.org/jython/rev/c13e8fe91176
changeset:   6668:c13e8fe91176
user:        Alex Grönholm <alex.gronholm at nextday.fi>
date:        Fri May 25 14:18:33 2012 +0300
summary:
  Added missing get_magic() function to the imp module

files:
  src/org/python/modules/imp.java |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/src/org/python/modules/imp.java b/src/org/python/modules/imp.java
--- a/src/org/python/modules/imp.java
+++ b/src/org/python/modules/imp.java
@@ -266,6 +266,10 @@
         return mod;
     }
 
+    public static PyObject get_magic() {
+	return new PyString("\u0003\u00f3\r\n");
+    }
+    
     public static PyObject get_suffixes() {
         return new PyList(new PyObject[] {new PyTuple(new PyString(".py"),
                                                       new PyString("r"),

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


More information about the Jython-checkins mailing list