Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r84444:19e34b1c8c51
Date: 2016-05-15 08:18 +0200
http://bitbucket.org/pypy/pypy/changeset/19e34b1c8c51/

Log:    - document branch
        - don't use the 'w_' prefix for variables that don't contain a W_Root
        object

diff --git a/pypy/doc/whatsnew-head.rst b/pypy/doc/whatsnew-head.rst
--- a/pypy/doc/whatsnew-head.rst
+++ b/pypy/doc/whatsnew-head.rst
@@ -93,3 +93,9 @@
 .. branch: ufunc-outer
 
 Implement ufunc.outer on numpypy
+
+.. branch: verbose-imports
+
+Support ``pypy -v``: verbose imports.  It does not log as much as
+cpython, but it should be enough to help when debugging package layout
+problems.
diff --git a/pypy/module/imp/importing.py b/pypy/module/imp/importing.py
--- a/pypy/module/imp/importing.py
+++ b/pypy/module/imp/importing.py
@@ -58,8 +58,8 @@
 def log_pyverbose(space, level, message):
     if space.sys.w_initialdict is None:
         return # sys module not initialised, avoid recursion
-    w_verbose = space.sys.get_flag('verbose')
-    if w_verbose >= level:
+    verbose = space.sys.get_flag('verbose')
+    if verbose >= level:
         w_stderr = space.sys.get('stderr')
         space.call_method(w_stderr, "write", space.wrap(message))
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to