Reduce the number of calls to config.get whenever possible. Yields a
performance improvement of at least 10% for the basic use case of
"receiving a message in the current tab". Logging stuff isn’t free
either, even when the call should be a no-op, so we should try to make
the debug log less verbose.
if the error has the same id as a sent message, it will be displayed
with a cross where there is usually a checkmark (ack), and the
received error will be appended to the message, in red.
if it does not have a know id, it will be added as another message to
the conversation, without a nick, and in red.
/set displays its results in the form “option=value”, so allowing the
command to interpret the same format as a valid command is only logical
(and allows quick copy/paste and edit).
In order to not pollute src/; without this change a script doing on a
sdist-built archive:
./setup.py build
./setup.py install
would fail because src/default_config.cfg was removed after setup(), and
data/default_config.cfg does not exist
- remove “make uninstall” target which was broken a long time ago
- move very install action to the setup.py (alias “make install” to
“python setup.py install”
- add some stuff to “make clean”
- update the config.py to search the default config file using
pkg_resources (more reliable than dirname(__file__))
- install the html doc only if available
- use README.rst for the setup.py long_description
- also, update the copyright notice to 2015
setuptools has slightly backwards (or forward)-incompatible changes when
you update its version while still having libs installed with the old
one.
We only support python 3.4, which means the virtualenv comes with
setuptools and pip already, so we don’t require to reinstall it. At
worse, people will have to read the setup.py error message.
move the modulename to bookmark → boookmarks
add a bookmarklist class with
remove module-level variables
do a features check on startup before trying to fetch
the bookmarks