[pypy-commit] pypy py3.5-time: variable not visible
plan_rich
pypy.commits at gmail.com
Tue Jan 3 10:10:36 EST 2017
Author: Richard Plangger <planrichi at gmail.com>
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):
More information about the pypy-commit
mailing list