diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-02-21 22:46:00 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2000-02-21 22:46:00 (GMT) |
commit | 772dd417f7900ac6550e98db2f815cffa4c1e11a (patch) | |
tree | dfb6f5c6bac67c0b11fb3140d83df8da34ae635d /Lib/compiler/misc.py | |
parent | 0dd7507e51f27fc65bfdce556bdeda7619287e9d (diff) | |
download | cpython-772dd417f7900ac6550e98db2f815cffa4c1e11a.zip cpython-772dd417f7900ac6550e98db2f815cffa4c1e11a.tar.gz cpython-772dd417f7900ac6550e98db2f815cffa4c1e11a.tar.bz2 |
satisfy the tabnanny (thanks to MH for noticing the problem)
Diffstat (limited to 'Lib/compiler/misc.py')
-rw-r--r-- | Lib/compiler/misc.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/compiler/misc.py b/Lib/compiler/misc.py index dae42d4..f85d708 100644 --- a/Lib/compiler/misc.py +++ b/Lib/compiler/misc.py @@ -11,25 +11,25 @@ def flatten(tup): class Set: def __init__(self): - self.elts = {} + self.elts = {} def __len__(self): return len(self.elts) def add(self, elt): - self.elts[elt] = elt + self.elts[elt] = elt def items(self): - return self.elts.keys() + return self.elts.keys() def has_elt(self, elt): - return self.elts.has_key(elt) + return self.elts.has_key(elt) def remove(self, elt): del self.elts[elt] class Stack: def __init__(self): - self.stack = [] - self.pop = self.stack.pop + self.stack = [] + self.pop = self.stack.pop def __len__(self): return len(self.stack) def push(self, elt): - self.stack.append(elt) + self.stack.append(elt) def top(self): - return self.stack[-1] + return self.stack[-1] |