Revision 11d4015f71111fd4addc416ba2c9c1fa2b5cba1f authored by James Lu on 20 June 2018, 15:18:46 UTC, committed by Valentin Lorentz on 20 June 2018, 15:18:46 UTC
* supybot-plugin-create: compactify import statements in the template

* supybot-plugin-create: prefer importlib over imp on Python >= 3.4

The imp module is deprecated as of Python 3.4[1], with importlib being the successor. However, importlib is only available in Python 2.7+ and 3.1+, so we should still use a fallback.

[1]: https://docs.python.org/3.6/library/imp.html

* test: add test cases for supybot-plugin-create

* -plugin-create: fix errors when only a subset of args are given

* -plugin-create: rename --real-name to --author/-a

These days, working under a pseudonym or alias is not unheard of, so putting emphasis on real names feels somewhat out of place.

* -plugin-create: add -d as an alias to --desc for consistency
1 parent 72c4801
History
File Mode Size
__init__.py -rw-r--r-- 0 bytes
de.po -rw-r--r-- 38.0 KB
fi.po -rw-r--r-- 67.9 KB
fr.po -rw-r--r-- 65.3 KB
fr.py -rw-r--r-- 3.7 KB
it.po -rw-r--r-- 56.5 KB
messages.pot -rw-r--r-- 36.2 KB

back to top