remove code.interact
fix another unicode oversight
This commit is contained in:
1
HACKING
1
HACKING
@@ -28,3 +28,4 @@ unicode
|
||||
- morituri.extern.log.log is not unicode-safe; don't pass it unicode objects;
|
||||
for example, always use %r to log paths
|
||||
- run with RIP_DEBUG=5 once in a while to catch unicode/logging errors.
|
||||
- Also use unicode prefix/suffix in tempfile.* methods; to force unicode.
|
||||
|
||||
@@ -282,7 +282,6 @@ class CDRDAOTask(task.Task):
|
||||
except Exception, e:
|
||||
self.debug('exception during _read()')
|
||||
self.debug(log.getExceptionMessage(e))
|
||||
import code; code.interact(local=locals())
|
||||
self.exception = e
|
||||
self.stop()
|
||||
|
||||
@@ -395,7 +394,7 @@ class ReadSessionTask(CDRDAOTask):
|
||||
CDRDAOTask.__init__(self)
|
||||
self.parser = OutputParser(self)
|
||||
(fd, self._tocfilepath) = tempfile.mkstemp(
|
||||
suffix='.readtablesession.morituri')
|
||||
suffix=u'.readtablesession.morituri')
|
||||
os.close(fd)
|
||||
os.unlink(self._tocfilepath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user