Show More
@@ -215,7 +215,7 b' class BaseIPythonApplication(Application):' | |||||
215 | return crashhandler.crash_handler_lite(etype, evalue, tb) |
|
215 | return crashhandler.crash_handler_lite(etype, evalue, tb) | |
216 |
|
216 | |||
217 | def _ipython_dir_changed(self, name, old, new): |
|
217 | def _ipython_dir_changed(self, name, old, new): | |
218 |
if old is not |
|
218 | if old is not Undefined: | |
219 | str_old = py3compat.cast_bytes_py2(os.path.abspath(old), |
|
219 | str_old = py3compat.cast_bytes_py2(os.path.abspath(old), | |
220 | sys.getfilesystemencoding() |
|
220 | sys.getfilesystemencoding() | |
221 | ) |
|
221 | ) |
@@ -369,7 +369,7 b' define(["widgets/js/manager",' | |||||
369 | // being the value or the promise of the serialized value |
|
369 | // being the value or the promise of the serialized value | |
370 | var serializers = this.constructor.serializers; |
|
370 | var serializers = this.constructor.serializers; | |
371 | if (serializers) { |
|
371 | if (serializers) { | |
372 | for (k in attrs) { |
|
372 | for (var k in attrs) { | |
373 | if (serializers[k] && serializers[k].serialize) { |
|
373 | if (serializers[k] && serializers[k].serialize) { | |
374 | attrs[k] = (serializers[k].serialize)(attrs[k], this); |
|
374 | attrs[k] = (serializers[k].serialize)(attrs[k], this); | |
375 | } |
|
375 | } |
@@ -624,7 +624,7 b' class HasTraits(py3compat.with_metaclass(MetaHasTraits, object)):' | |||||
624 | if cache[name][1] is not Undefined: |
|
624 | if cache[name][1] is not Undefined: | |
625 | setattr(self, name, cache[name][1]) |
|
625 | setattr(self, name, cache[name][1]) | |
626 | else: |
|
626 | else: | |
627 |
|
|
627 | self._trait_values.pop(name) | |
628 | cache = {} |
|
628 | cache = {} | |
629 | raise e |
|
629 | raise e | |
630 | finally: |
|
630 | finally: |
General Comments 0
You need to be logged in to leave comments.
Login now