summaryrefslogtreecommitdiff
path: root/Lib/symtable.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-03-29 04:36:09 +0000
committerTim Peters <tim.peters@gmail.com>2001-03-29 04:36:09 +0000
commita19a168cccbc61b2a002475dd3b966b50983003e (patch)
treeb1cd5ae6e193619ac8fecc99652813304a4873f0 /Lib/symtable.py
parent301ab7f2d0ae11087512ef3a36beaf4edc3efa0a (diff)
downloadcpython-git-a19a168cccbc61b2a002475dd3b966b50983003e.tar.gz
Whitespace normalization.
Diffstat (limited to 'Lib/symtable.py')
-rw-r--r--Lib/symtable.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py
index 6401d51831..135cd569b6 100644
--- a/Lib/symtable.py
+++ b/Lib/symtable.py
@@ -34,7 +34,7 @@ class SymbolTableFactory:
return obj
newSymbolTable = SymbolTableFactory()
-
+
def bool(x):
"""Helper to force boolean result to 1 or 0"""
if x:
@@ -60,7 +60,7 @@ class SymbolTable:
kind = ""
else:
kind = "%s " % self.__class__.__name__
-
+
if self._table.name == "global":
return "<%sSymbolTable for module %s>" % (kind, self._filename)
else:
@@ -143,7 +143,7 @@ class Function(SymbolTable):
if self.__locals is None:
self.__locals = self.__idents_matching(lambda x:x & DEF_BOUND)
return self.__locals
-
+
def get_globals(self):
if self.__globals is None:
glob = DEF_GLOBAL | DEF_FREE_GLOBAL
@@ -186,7 +186,7 @@ class Symbol:
return bool(self.__flags & DEF_PARAM)
def is_global(self):
- return bool((self.__flags & DEF_GLOBAL)
+ return bool((self.__flags & DEF_GLOBAL)
or (self.__flags & DEF_FREE_GLOBAL))
def is_vararg(self):