From 90842ce62da767f0f52c2a78a5c4583aaa6858dc Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Fri, 26 Sep 2014 11:58:11 +0200 Subject: [PATCH] Fixed global variables. --- jedi/parser/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi/parser/__init__.py b/jedi/parser/__init__.py index 9a277374..b8efc70d 100644 --- a/jedi/parser/__init__.py +++ b/jedi/parser/__init__.py @@ -595,7 +595,7 @@ class Parser(object): self._scope.add_statement(kw) if stmt is not None and tok_str == 'global': for t in stmt._token_list: - if isinstance(t, pr.Name): + if isinstance(t, pr.NamePart): # Add the global to the top module, it counts there. self.module.add_global(t) # decorator