Skip to content

Commit 27ead62

Browse files
committed
Renamed Dummy-class to Struct.
committer: Bob Farrell <bob@keys.(none)> --HG-- extra : convert_revision : dc69b0b2449043700cfd39f74759cbb89b460f04
1 parent 3d7d816 commit 27ead62

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bpython.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@
5555
Group, OneOrMore, ZeroOrMore, Literal, Optional, Word, \
5656
alphas, alphanums, printables, ParseException
5757

58-
class Dummy( object ):
59-
pass
60-
OPTS = Dummy()
58+
class Struct( object ):
59+
pass # When we inherit, a __dict__ is added (object uses slots)
60+
61+
OPTS = Struct()
6162
DO_RESIZE = False
6263

6364
# Set default values. (Overridden by loadrc())
@@ -386,7 +387,7 @@ def _complete( self, unused_tab=False ):
386387
return True
387388

388389
def show_list( self, items, topline=None ):
389-
shared = Dummy()
390+
shared = Struct()
390391
shared.cols = 0
391392
shared.rows = 0
392393
shared.wl = 0

0 commit comments

Comments
 (0)