# HG changeset patch
# User Stephan Peijnik <spe@anexia.at>
# Date 1292664864 -3600
# Node ID 5fe8aeb4c03ac3478a3749eebc7762542223758f
# Parent dc4e1cfd901f07957c48f141c95d398c88d1f9e3
foolscap/call.py:
- Replaced non-existant foolscap.logging.log with twisted.python.log
(Closes: #125).
foolscap/banana.py:
- Fixed deprecation warning for sets module, sets.Set was replaced
with builtin 'set'. Still uses old behvaiour for python < 2.6.
Signed-off-by: Stephan Peijnik <spe@anexia.at>
diff -r dc4e1cfd901f -r 5fe8aeb4c03a foolscap/banana.py
a
|
b
|
|
1 | 1 | |
2 | | import struct, sets, time |
| 2 | import sys |
| 3 | |
| 4 | if sys.version_info[0] >= 2 and sys.version_info[1] >= 6: |
| 5 | class sets: |
| 6 | Set = set |
| 7 | else: |
| 8 | import sets |
| 9 | |
| 10 | import struct, time |
3 | 11 | |
4 | 12 | from twisted.internet import protocol, defer, reactor |
5 | 13 | from twisted.python.failure import Failure |
diff -r dc4e1cfd901f -r 5fe8aeb4c03a foolscap/call.py
a
|
b
|
|
1 | 1 | |
2 | | from twisted.python import failure, reflect |
| 2 | from twisted.python import failure, reflect, log as twlog |
3 | 3 | from twisted.internet import defer |
4 | 4 | |
5 | 5 | from foolscap import copyable, slicer, tokens |
… |
… |
|
913 | 913 | pickled = 1 |
914 | 914 | def printTraceback(self, file=None, elideFrameworkCode=0, |
915 | 915 | detail='default'): |
916 | | if file is None: file = log.logerr |
| 916 | if file is None: file = twlog.logerr |
917 | 917 | file.write("Traceback from remote host -- ") |
918 | 918 | file.write(self.traceback) |
919 | 919 | |