mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
@@ -5,7 +5,7 @@ if '__main__' == __name__:
|
|||||||
print('''this is a library file, which is not meant to be executed''')
|
print('''this is a library file, which is not meant to be executed''')
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
import sys, time, pickle, os, logging, random
|
import sys, time, pickle, os, logging
|
||||||
from local_config import conf
|
from local_config import conf
|
||||||
|
|
||||||
RATE_GLOBAL = 0x01
|
RATE_GLOBAL = 0x01
|
||||||
@@ -29,8 +29,6 @@ logging.basicConfig(
|
|||||||
log = logging.getLogger()
|
log = logging.getLogger()
|
||||||
log.plugin = log.info # ... probably fix this sometime (FIXME)
|
log.plugin = log.info # ... probably fix this sometime (FIXME)
|
||||||
|
|
||||||
random.seed(os.urandom(8))
|
|
||||||
|
|
||||||
def debug_enabled():
|
def debug_enabled():
|
||||||
# return True
|
# return True
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ if '__main__' == __name__:
|
|||||||
print('''this is a plugin file, which is not meant to be executed''')
|
print('''this is a plugin file, which is not meant to be executed''')
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
import time, unicodedata, re, sys, urllib.request, json
|
import time, random, unicodedata, re, sys, urllib.request, json
|
||||||
import types
|
import types
|
||||||
import traceback
|
import traceback
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import sys, re, time, pickle
|
import sys, re, time, pickle, random
|
||||||
import urllib.request, urllib.parse, urllib.error, html.parser
|
import urllib.request, urllib.parse, urllib.error, html.parser
|
||||||
from common import *
|
from common import *
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user