Author: Richard Plangger <[email protected]>
Branch: py3.5-time
Changeset: r89337:29578064d2db
Date: 2017-01-03 16:02 +0100
http://bitbucket.org/pypy/pypy/changeset/29578064d2db/

Log:    variable not visible

diff --git a/pypy/module/time/interp_time.py b/pypy/module/time/interp_time.py
--- a/pypy/module/time/interp_time.py
+++ b/pypy/module/time/interp_time.py
@@ -606,6 +606,7 @@
             # NOTE this is not cleanly solved, the global variable glob_tm_zone
             # saves the string that is later deleted when this function is 
called again
             # an refactoring of this module could remove this
+            global glob_tm_zone
             tm_zone = encode_utf8(space, space.unicode_w(tup_w[9]), 
allow_surrogates=True)
             malloced_str = rffi.str2charp(tm_zone, track_allocation=False)
             if glob_tm_zone != lltype.nullptr(rffi.CCHARP.TO):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to