diff options
author | Barry Warsaw <barry@python.org> | 2002-10-21 14:20:37 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2002-10-21 14:20:37 (GMT) |
commit | 531e3932bfa8aa5889c6f4d7fdef02bbbb39dcba (patch) | |
tree | 61480a22fff9dec18b99aff4fbdafded6f13e281 /Tools | |
parent | 41118045483790571f96fdf75a5689c0c3a93eeb (diff) | |
download | cpython-531e3932bfa8aa5889c6f4d7fdef02bbbb39dcba.zip cpython-531e3932bfa8aa5889c6f4d7fdef02bbbb39dcba.tar.gz cpython-531e3932bfa8aa5889c6f4d7fdef02bbbb39dcba.tar.bz2 |
Fix a typo, update (only one) style improvement, whitespace
normalization.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/pynche/Switchboard.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/pynche/Switchboard.py b/Tools/pynche/Switchboard.py index 0ad7c63..ee83d47 100644 --- a/Tools/pynche/Switchboard.py +++ b/Tools/pynche/Switchboard.py @@ -7,8 +7,8 @@ conform to the following interface: arguments; the red, green, and blue values of the selected color. - When a Viewer selects a color and wishes to update all other Views, it - should call update_views() on the Switchboard object. Not that the - Viewer typically does *not* update itself before calling update_views(), + should call update_views() on the Switchboard object. Note that the + Viewer typically does *not* update itself before calling update_views(), since this would cause it to get updated twice. Optionally, Viewers can also implement: @@ -23,11 +23,11 @@ Optionally, Viewers can also implement: unmapped. All Viewers should implement this. - colordb_changed() which takes a single argument, an instance of - ColorDB. This is called whenever the color name database is changed and + ColorDB. This is called whenever the color name database is changed and gives a chance for the Viewers to do something on those events. See ListViewer for details. -External Viewers are found dynamically. Viewer modules should have names such +External Viewers are found dynamically. Viewer modules should have names such as FooViewer.py. If such a named module has a module global variable called ADDTOVIEW and this variable is true, the Viewer will be added dynamically to the `View' menu. ADDTOVIEW contains a string which is used as the menu item @@ -64,7 +64,7 @@ class Switchboard: try: fp = open(initfile) self.__optiondb = marshal.load(fp) - if type(self.__optiondb) <> DictType: + if not isinstance(self.__optiondb, DictType): print >> sys.stderr, \ 'Problem reading options from file:', initfile self.__optiondb = {} |