| logger.py (3aa2d9e3a17455108487be9a174c0f069d9014ad) | logger.py (b59d1e59cd1ff82bf194cae84bb948fd93e60fcd) |
|---|---|
| 1import args 2import sys 3import os 4 5# Ugly stuff to have curses called ONLY once, instead of for each 6# new Configure object created (and flashing the screen) 7global LineWidth 8global RemoveDirectory --- 27 unchanged lines hidden (view full) --- 36 self.debugSections = debugSections 37 self.debugIndent = debugIndent 38 self.getRoot() 39 return 40 41 def __getstate__(self): 42 '''We do not want to pickle the default log stream''' 43 d = args.ArgumentProcessor.__getstate__(self) | 1import args 2import sys 3import os 4 5# Ugly stuff to have curses called ONLY once, instead of for each 6# new Configure object created (and flashing the screen) 7global LineWidth 8global RemoveDirectory --- 27 unchanged lines hidden (view full) --- 36 self.debugSections = debugSections 37 self.debugIndent = debugIndent 38 self.getRoot() 39 return 40 41 def __getstate__(self): 42 '''We do not want to pickle the default log stream''' 43 d = args.ArgumentProcessor.__getstate__(self) |
| 44 if 'logBkp' in d: 45 del d['logBkp'] |
|
| 44 if 'log' in d: 45 if d['log'] is Logger.defaultLog: 46 del d['log'] 47 else: 48 d['log'] = None 49 if 'out' in d: 50 if d['out'] is Logger.defaultOut: 51 del d['out'] --- 251 unchanged lines hidden --- | 46 if 'log' in d: 47 if d['log'] is Logger.defaultLog: 48 del d['log'] 49 else: 50 d['log'] = None 51 if 'out' in d: 52 if d['out'] is Logger.defaultOut: 53 del d['out'] --- 251 unchanged lines hidden --- |