equal
deleted
inserted
replaced
253 return chgui(srcui) |
253 return chgui(srcui) |
254 |
254 |
255 def _loadnewui(srcui, args): |
255 def _loadnewui(srcui, args): |
256 from . import dispatch # avoid cycle |
256 from . import dispatch # avoid cycle |
257 |
257 |
258 newui = srcui.__class__() |
258 newui = srcui.__class__.load() |
259 for a in ['fin', 'fout', 'ferr', 'environ']: |
259 for a in ['fin', 'fout', 'ferr', 'environ']: |
260 setattr(newui, a, getattr(srcui, a)) |
260 setattr(newui, a, getattr(srcui, a)) |
261 if util.safehasattr(srcui, '_csystem'): |
261 if util.safehasattr(srcui, '_csystem'): |
262 newui._csystem = srcui._csystem |
262 newui._csystem = srcui._csystem |
263 |
263 |