Mark _init as global in pyafs_error
authorAlex Dehnert <adehnert@mit.edu>
Fri, 16 Dec 2011 14:19:51 +0000 (09:19 -0500)
committerAlex Dehnert <adehnert@mit.edu>
Fri, 16 Dec 2011 20:16:41 +0000 (15:16 -0500)
commit94a09d55edd7d3c1b53424ee1a39245db751c5e9
tree2d083f81853a7d1ad17a7b17ab43f95a54e07d45
parent94170b7204c37db4553094a823f3f171dbe993e9
Mark _init as global in pyafs_error

Because _init is later assigned to in the function, new enough versions of
cython (67bf84357feabe73612e2a9eef3e48a05e74d76f or so and later, apparently)
conclude that it's a local. Unfortunately, that means that the "if _init" is
referencing an undeclared variable. See also
http://codespeak.net/pipermail/cython-dev/2009-July/006396.html.

Signed-off-by: Alex Dehnert <adehnert@mit.edu>
afs/_util.pyx