Missing urllib import.
authorCMDR furrycat <elite@furrycat.net>
Thu, 27 Oct 2016 18:04:18 +0000 (19:04 +0100)
committerCMDR furrycat <elite@furrycat.net>
Thu, 27 Oct 2016 18:04:18 +0000 (19:04 +0100)
app.py
bot.py

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),