Trackers: python 3 compatibility.

This commit is contained in:
oddluck 2020-02-13 13:30:16 +00:00
parent e984f498db
commit 2805ecc6cc
8 changed files with 482 additions and 490 deletions

View File

@ -1,5 +1,6 @@
###
# Copyright (c) 2016 Ormanya
# Copyright (c) 2016, Ormanya
# Copyright (c) 2020, oddluck
# All rights reserved.
#
#
@ -12,28 +13,32 @@ here. This should describe *what* the plugin does.
import supybot
import supybot.world as world
import importlib
# Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some similar system.
__version__ = ""
# XXX Replace this with an appropriate author or supybot.Author instance.
__author__ = 'ormanya'
__author__ = supybot.Author('ormanya', '', '')
__maintainer__ = getattr(supybot.authors, 'oddluck',
supybot.Author('oddluck', 'oddluck', 'oddluck@riseup.net'))
# This is a dictionary mapping supybot.Author instances to lists of
# contributions.
__contributors__ = {}
# This is a url where the most recent plugin package can be downloaded.
__url__ = '' # 'http://supybot.com/Members/yourname/ServerStatus/download'
__url__ = 'https://github.com/oddluck/limnoria-plugins/'
from . import config
from . import plugin
from imp import reload
# In case we're being reloaded.
reload(config)
reload(plugin)
importlib.reload(config)
importlib.reload(plugin)
# Add more reloads here if you add third-party modules and want them to be
# reloaded when this plugin is reloaded. Don't forget to import them as well!

View File

@ -1,6 +1,6 @@
###
# Copyright (c) 2014, SpiderDave
# Copyright (c) 2016-2017 Ormanya
# Copyright (c) 2020, oddluck
# All rights reserved.
#
#

File diff suppressed because it is too large Load Diff

View File

@ -1,18 +0,0 @@
###
# Copyright (c) 2016-2017 Ormanya
# All rights reserved.
#
#
###
from supybot.test import *
import os
#The plugin name will be based on the plugin's folder.
PluginName=os.path.dirname( __file__ ).split(os.sep)[-1]
class TestCase(PluginTestCase):
plugins = (PluginName,)
TestCase.__name__=PluginName+'TestCase'
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:

View File

@ -1,5 +1,6 @@
###
# Copyright (c) 2012-2014, spline
# Copyright (c) 2020, oddluck
# All rights reserved.
#
#
@ -19,14 +20,16 @@ import importlib
__version__ = ""
# XXX Replace this with an appropriate author or supybot.Author instance.
__author__ = 'reticulatingspline'
__author__ = supybot.Author('reticulatingspline', 'spline', '')
__maintainer__ = getattr(supybot.authors, 'oddluck',
supybot.Author('oddluck', 'oddluck', 'oddluck@riseup.net'))
# This is a dictionary mapping supybot.Author instances to lists of
# contributions.
__contributors__ = {}
# This is a url where the most recent plugin package can be downloaded.
__url__ = 'https://github.com/reticulatingspline/WolframAlpha' # 'http://supybot.com/Members/yourname/WolframAlpha/download'
__url__ = 'https://github.com/oddluck/limnoria-plugins/'
from . import config
from . import plugin

View File

@ -1,5 +1,6 @@
###
# Copyright (c) 2012-2014, spline
# Copyright (c) 2020, oddluck
# All rights reserved.
#
#

View File

@ -1,5 +1,6 @@
###
# Copyright (c) 2012-2014, spline
# Copyright (c) 2020, oddluck
# All rights reserved.
#
#

View File

@ -1,5 +1,6 @@
###
# Copyright (c) 2012-2014, spline
# Copyright (c) 2020, oddluck
# All rights reserved.
#
#
@ -11,7 +12,7 @@ from supybot.test import *
class WolframAlphaTestCase(PluginTestCase):
plugins = ('WolframAlpha',)
def testWolframAlpha(self):
apiKey = os.environ.get('apiKey')
conf.supybot.plugins.WolframAlpha.apiKey.setValue(apiKey)