projects
/
theonering
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Marking the flags and improving comments
[theonering]
/
src
/
gtk_toolbox.py
diff --git
a/src/gtk_toolbox.py
b/src/gtk_toolbox.py
index
da9accc
..
a74dea6
100644
(file)
--- a/
src/gtk_toolbox.py
+++ b/
src/gtk_toolbox.py
@@
-12,6
+12,9
@@
import threading
import Queue
import Queue
+_moduleLogger = logging.getLogger("gtk_toolbox")
+
+
@contextlib.contextmanager
def flock(path, timeout=-1):
WAIT_FOREVER = -1
@contextlib.contextmanager
def flock(path, timeout=-1):
WAIT_FOREVER = -1
@@
-137,7
+140,7
@@
def comap(function, target):
mappedItem = function(*item)
target.send(mappedItem)
except Exception, e:
mappedItem = function(*item)
target.send(mappedItem)
except Exception, e:
- logging.exception("Forwarding exception!")
+ _moduleLogger.exception("Forwarding exception!")
target.throw(e.__class__, str(e))
target.throw(e.__class__, str(e))