Changeset 590 for branches/4.x


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

Fix debugging of DB() via open file

File:
1 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)
Note: See TracChangeset for help on using the changeset viewer.