mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Fix a typo, update (only one) style improvement, whitespace
normalization.
This commit is contained in:
parent
4111804548
commit
531e3932bf
1 changed files with 5 additions and 5 deletions
|
@ -7,7 +7,7 @@ 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
|
||||
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.
|
||||
|
||||
|
@ -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 = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue