projects
/
irker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e0ff6c
)
Pacify pylint.
author
Eric S. Raymond
<esr@thyrsus.com>
Wed, 3 Oct 2012 21:38:05 +0000
(17:38 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Wed, 3 Oct 2012 21:38:05 +0000
(17:38 -0400)
irkerhook.py
patch
|
blob
|
history
diff --git
a/irkerhook.py
b/irkerhook.py
index 0d1e284d94a2be61521a197eb9122c7ff2973b56..61ff52cc21d070e887cf36a2f8c3b630808aee84 100755
(executable)
--- a/
irkerhook.py
+++ b/
irkerhook.py
@@
-39,8
+39,10
@@
default_channels = "irc://chat.freenode.net/%(project)s,irc://chat.freenode.net/
import os, sys, commands, socket, urllib
from pipes import quote as shellquote
-try: import simplejson as json
-except ImportError: import json
+try:
+ import simplejson as json # Faster, also makes us Python-2.4-compatible
+except ImportError:
+ import json
version = "1.5"