Commits

Author Commit Message Labels Comments Date
jviide
Mark Codenomicon Ltd. as the copyright holder
jviide
idiokit.dns: Add support for MX requests with idiokit.dns.mx(name[, resolver]).
jviide
idiokit.irc: Fix, close the IRC connection socket only after we have stopped reading and writing to it.
jviide
idiokit.irc: Fix wrong indentation that caused error checking during connections attempts to be skipped.
jviide
idiokit.dns._dns: Optimize unpack_name. Turns out it's faster to just add labels directly to the label list instead of first adding the (start, end) offset pairs and then going through the list again in the end.
jviide
idiokit.dns.tests.test_dns: Try to make the intent of the test test_invalid_octets clearer.
jviide
idiokit.dns: Fix unpack_name to raise a MessageError when the label length octet's two highest bits are 01 or 10.
jviide
idiokit.dns: Add tests for unpack_name error handling and spec conformance. Fix the actual code to survive the tests.
jviide
setup.cfg: Add setup.cfg for codifying flake8 settings.
jviide
idiokit & idiokit.dns: Modify __init__ files to pass linting.
jviide
idiokit.tests.test_xmlcore: Fix an invalid reference to xmlcore.Element.
jviide
setup*.py: Fix coding style - remove unused imports, follow PEP8.
jviide
idiokit: Fix coding style - use frozenset for constant string sets.
jviide
*: Fix coding style - use only the new style Python format strings.
jviide
setuphelpers.py: Remove an unused function.
jviide
idiokit.socket & idiokit.ssl: Use socket.error.errno instead of .args[0] to find out the errno.
jviide
idiokit.dns._dns: Fix coding style (change "if result and ..." to "if result is not None and ...").
jviide
idiokit.xmpp.jid: Style fix, avoid "from ... import *".
jviide
idiokit.xmpp.jid: Code style fixes.
jviide
MANIFEST.in: Added.
jviide
idiokit.socket, idiokit.ssl: Short-circuit 0 byte reads.
jviide
idiokit.dns: Lint fixes.
jviide
idiokit: Reorganize idiokit.dns tests into idiokit.dns.tests.
jviide
idiokit.dns._conf: If opening /etc/hosts or /etc/resolv.conf fails with IOError, just ignore the error and assume the files to be empty.
jviide
idiokit.dns: Trust the platform's ephemeral source port generation method to adequately randomize the UDP source ports instead of implementing the randomization by ourselves.
Comments 1
jviide
idiokit.dns: Publish DNSTimeout error.
jviide
idiokit.xmpp: Fix SRV logic. RFC 6120 states that the fallback logic shouldn't be applied when the entity (client in this case) receives an answer to the SRV query but fails to establish a connection using the answer data.
jviide
idiokit.dns: Separate the case when query times out (raise DNSTimeout) and when there are no valid DNS servers specified (raise DNSError).
jviide
Backed out changeset 1b7a643f5d67.
jviide
idiokit: idiokit.sleep() (without argument) sleeps forever (until a signal is received).
  1. Prev
  2. Next