Christopher Haster
8cc81aef7d
scripts: Adopt __get__ binding for write/writeln methods
...
This actually binds our custom write/writeln functions as methods to the
file object:
def writeln(self, s=''):
self.write(s)
self.write('\n')
f.writeln = writeln.__get__(f)
This doesn't really gain us anything, but is a bit more correct and may
be safer if other code messes with the file's internals.
2025-06-27 12:56:03 -05:00
..
2025-06-27 12:56:03 -05:00
2025-04-16 15:23:06 -05:00
2025-05-15 15:44:30 -05:00
2025-06-27 12:56:03 -05:00
2025-06-27 12:56:03 -05:00
2025-05-15 15:44:30 -05:00
2025-05-15 14:10:42 -05:00
2025-05-15 15:44:30 -05:00
2025-05-15 15:44:30 -05:00
2025-05-15 15:44:30 -05:00
2025-04-16 15:22:34 -05:00
2025-06-27 12:56:03 -05:00
2025-06-27 12:56:03 -05:00
2025-05-24 21:51:06 -05:00
2025-04-16 15:22:34 -05:00
2025-05-28 15:00:04 -05:00
2025-06-22 15:37:07 -05:00
2025-05-15 14:10:42 -05:00
2025-05-15 14:10:42 -05:00
2025-06-22 15:37:07 -05:00
2025-05-24 21:51:06 -05:00
2025-05-24 21:51:06 -05:00
2025-05-24 21:51:06 -05:00
2025-06-27 12:56:03 -05:00
2025-05-15 14:10:42 -05:00
2025-05-15 15:44:30 -05:00
2025-05-15 15:44:30 -05:00
2025-06-27 12:56:03 -05:00
2025-05-15 18:48:46 -05:00
2025-06-27 12:56:03 -05:00
2025-05-15 15:44:30 -05:00
2025-05-15 15:44:30 -05:00
2025-05-15 15:51:49 -05:00
2025-04-16 15:23:06 -05:00
2025-06-27 12:56:03 -05:00
2025-06-27 12:56:03 -05:00
2025-06-27 12:56:03 -05:00
2025-05-15 15:51:49 -05:00