Skip to content

Commit 0f054e4

Browse files
committed
Fixed Event.globals to actually be the dict of global vars (it was just the locals).
1 parent d3f2c9c commit 0f054e4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
=========
44

5+
0.5.1 (2015-04-15)
6+
------------------
7+
8+
* Fixed :obj:`Event.globals` to actually be the dict of global vars (it was just the locals).
9+
510
0.5.0 (2015-04-06)
611
------------------
712

src/hunter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def locals(self):
171171

172172
@_CachedProperty
173173
def globals(self):
174-
return self.frame.f_locals
174+
return self.frame.f_globals
175175

176176
@_CachedProperty
177177
def function(self):

0 commit comments

Comments
 (0)