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
commit5cabc16ce271e02c83fd101e1d38265b2fa356db (patch)
treed5c84ffb2764c2ca2c57e289ea6a3d4aadbef2fc /Lib/symtable.py
parentbab29bd0c94cd6c33442a5d1407874c18c3448af (diff)
downloadcpython-5cabc16ce271e02c83fd101e1d38265b2fa356db.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):