make namespace module flake8-compliant, change exceptions in that mod… by adamhadani · Pull Request #711 · RDFLib/rdflib (original) (raw)

ok, i just overrode the very weird stuff (wrt. repr and str)... if anything goes wrong, i'm to blame ;)

wrt. % vs. .format() cleanup... i'm not decided about this... format was meant to be the future, but then somehow got stuck... i think initially (py 3.0 or so) % was deprecated, but the current docs don't deprecate it anymore... the logging module still heavily relies on it (logging.debug('foo %r bar', huge_list) won't actually do any formatting for non debug log-levels, etc.). I guess the smartest thing we can do there is wait and allow both for now ;)