Changeset 590


Ignore:
Timestamp:
Nov 21, 2015, 11:48:42 PM (4 years ago)
Author:
cito
Message:

Fix debugging of DB() via open file

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/module/pg.py

    r563 r590  
    333333                print(self.debug % s)
    334334            elif isinstance(self.debug, file):
    335                 file.write(s + '\n')
     335                self.debug.write(s + '\n')
    336336            elif callable(self.debug):
    337337                self.debug(s)
  • trunk/module/pg.py

    r589 r590  
    334334                print(self.debug % s)
    335335            elif hasattr(self.debug, 'write'):
    336                 debug.write(s + '\n')
     336                self.debug.write(s + '\n')
    337337            elif callable(self.debug):
    338338                self.debug(s)
Note: See TracChangeset for help on using the changeset viewer.