Show More
@@ -624,7 +624,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
624 | # Object inspector |
|
624 | # Object inspector | |
625 | self.inspector = oinspect.Inspector(oinspect.InspectColors, |
|
625 | self.inspector = oinspect.Inspector(oinspect.InspectColors, | |
626 | PyColorize.ANSICodeColors, |
|
626 | PyColorize.ANSICodeColors, | |
627 |
|
|
627 | self.colors, | |
628 | self.object_info_string_level) |
|
628 | self.object_info_string_level) | |
629 |
|
629 | |||
630 | def init_io(self): |
|
630 | def init_io(self): |
@@ -352,7 +352,7 b' class Inspector(Colorable):' | |||||
352 |
|
352 | |||
353 | def __init__(self, color_table=InspectColors, |
|
353 | def __init__(self, color_table=InspectColors, | |
354 | code_color_table=PyColorize.ANSICodeColors, |
|
354 | code_color_table=PyColorize.ANSICodeColors, | |
355 |
scheme= |
|
355 | scheme=None, | |
356 | str_detail_level=0, |
|
356 | str_detail_level=0, | |
357 | parent=None, config=None): |
|
357 | parent=None, config=None): | |
358 | super(Inspector, self).__init__(parent=parent, config=config) |
|
358 | super(Inspector, self).__init__(parent=parent, config=config) | |
@@ -379,8 +379,9 b' class Inspector(Colorable):' | |||||
379 | self.color_table.active_colors.normal) |
|
379 | self.color_table.active_colors.normal) | |
380 |
|
380 | |||
381 | def set_active_scheme(self, scheme): |
|
381 | def set_active_scheme(self, scheme): | |
382 | self.color_table.set_active_scheme(scheme) |
|
382 | if scheme is not None: | |
383 |
self |
|
383 | self.color_table.set_active_scheme(scheme) | |
|
384 | self.parser.color_table.set_active_scheme(scheme) | |||
384 |
|
385 | |||
385 | def noinfo(self, msg, oname): |
|
386 | def noinfo(self, msg, oname): | |
386 | """Generic message when no information is found.""" |
|
387 | """Generic message when no information is found.""" |
General Comments 0
You need to be logged in to leave comments.
Login now