git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ead6db
)
Missing urllib import.
author
CMDR furrycat
<elite@furrycat.net>
Thu, 27 Oct 2016 18:04:18 +0000
(19:04 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Thu, 27 Oct 2016 18:04:18 +0000
(19:04 +0100)
app.py
patch
|
blob
|
history
bot.py
patch
|
blob
|
history
diff --git
a/app.py
b/app.py
index
935e979
..
40d4f7a
100644
(file)
--- a/
app.py
+++ b/
app.py
@@
-40,11
+40,6
@@
class Identify(Enum):
return 'Voice Channel ({}bps)'.format(instance.bitrate)
return 'Channel'
-if sys.version_info >= (3, 0):
- import urllib.request
-else:
- import urllib2
-
db = DBConnection()
plugins = Plugins()
diff --git
a/bot.py
b/bot.py
index
2639d44
..
ade6c6c
100644
(file)
--- a/
bot.py
+++ b/
bot.py
@@
-9,6
+9,11
@@
import re
import sys
import time
+if sys.version_info >= (3, 0):
+ import urllib.request
+else:
+ import urllib2
+
variables = {
'dryrun': multiprocessing.Value('b', os.getenv('DRYRUN') is not None),
'debug': multiprocessing.Value('b', os.getenv('DEBUG') is not None),