Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 531e393

Browse files
committed
Fix a typo, update (only one) style improvement, whitespace
normalization.
1 parent 4111804 commit 531e393

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Tools/pynche/Switchboard.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
arguments; the red, green, and blue values of the selected color.
88
99
- When a Viewer selects a color and wishes to update all other Views, it
10-
should call update_views() on the Switchboard object. Not that the
11-
Viewer typically does *not* update itself before calling update_views(),
10+
should call update_views() on the Switchboard object. Note that the
11+
Viewer typically does *not* update itself before calling update_views(),
1212
since this would cause it to get updated twice.
1313
1414
Optionally, Viewers can also implement:
@@ -23,11 +23,11 @@
2323
unmapped. All Viewers should implement this.
2424
2525
- colordb_changed() which takes a single argument, an instance of
26-
ColorDB. This is called whenever the color name database is changed and
26+
ColorDB. This is called whenever the color name database is changed and
2727
gives a chance for the Viewers to do something on those events. See
2828
ListViewer for details.
2929
30-
External Viewers are found dynamically. Viewer modules should have names such
30+
External Viewers are found dynamically. Viewer modules should have names such
3131
as FooViewer.py. If such a named module has a module global variable called
3232
ADDTOVIEW and this variable is true, the Viewer will be added dynamically to
3333
the `View' menu. ADDTOVIEW contains a string which is used as the menu item
@@ -64,7 +64,7 @@ def __init__(self, initfile):
6464
try:
6565
fp = open(initfile)
6666
self.__optiondb = marshal.load(fp)
67-
if type(self.__optiondb) <> DictType:
67+
if not isinstance(self.__optiondb, DictType):
6868
print >> sys.stderr, \
6969
'Problem reading options from file:', initfile
7070
self.__optiondb = {}

0 commit comments

Comments
 (0)