summaryrefslogtreecommitdiff
path: root/dns/tokenizer.py
Commit message (Collapse)AuthorAgeFilesLines
* Add Tokenizer.concatenate_remaining_identifiers()Brian Wellington2020-06-301-0/+19
| | | | | | Replace identical code duplicated in a number of rdatatype implementations that concatenated all of the remaining tokens in order to decode them.
* more tokenizer coverageBob Halley2020-06-181-1/+2
|
* Improve the comment on get_int(), as it is unsigned.Bob Halley2020-06-171-13/+8
| | | | | | | | | | Add missing base parameter to get_uint32. Don't copy get_int in get_uint32, just call get_int. get_uint32 erroneously permitted 4294967296. remove cut-and-paste origin parameter to get_string() and get_identifier().
* Minor Python 3 cleanups.Brian Wellington2020-06-031-2/+2
| | | | | | | Classes inherit from object by default; there's no need to explicitly include this. Replace super(Foo, self) with super().
* Check character-string length for HINFO recordsNils Wisiol2020-05-291-1/+5
|
* Replace dicts with sets.Brian Wellington2020-05-191-10/+2
|
* Add IDNA codec support to tokenizer and dns.rdata.from_text()Bob Halley2020-05-031-2/+13
|
* remove backwards compatibility for something deleted 10 years agoBob Halley2020-05-031-16/+0
|
* fix indentation error after tokenizer refactoringBob Halley2020-05-031-1/+1
|
* Do not double-UTF-8 encode escapes in TXT-like records. [Issue #321]Bob Halley2020-05-031-16/+60
|
* Add as_name(), allowing an already read token to be interpreted a name.Bob Halley2020-05-011-4/+13
|
* In library code, replace from io import BytesIO (or StringIO) with import ioBob Halley2020-05-011-3/+3
|
* Add relativize_to to from_text().Brian Wellington2020-03-181-2/+3
| | | | | | | | | | | | | | | When calling from_text, the zone code needs to apply the current origin (which may or may not be the zone origin, if sub-zone $ORIGIN statements are present), and may also want to relativize the contents to the zone origin. Previously, this was done by explicitly reading records as absolute, and then relativizing them laster. With this change, the work is moved to the tokenizer. This gets rid of the remaining internal uses of dns.rdata.choose_relativity(), which prevents rdata from being immutable.
* Remove _compat module.Bob Halley2018-12-091-5/+4
|
* update copyrightBob Halley2018-12-011-0/+2
|
* Make lint happierBjörn Victor2018-11-121-4/+4
|
* Support for Chaos A recordsBjörn Victor2018-11-121-6/+10
| | | | Based on MX records. Adds functionality to the tokenizer to read octal 16-bit numbers.
* render and tokenizer epydoc removalBob Halley2017-01-161-79/+80
|
* Pylint: enable superfluous-parens checkMartin Basti2016-06-271-1/+1
|
* Pylint: enable unneeded-not checkMartin Basti2016-06-271-1/+1
|
* python3 supportArthur Gautier2016-04-211-21/+40
| | | | Signed-off-by: Arthur Gautier <baloo@gandi.net>
* Merge pull request #87 from ThomasWaldmann/masterBob Halley2015-02-261-1/+1
|\ | | | | fix unicode ipaddr crashes in rdata.from_text and tokenizer.Tokenizer
| * fix unicode ipaddr crashes in rdata.from_text and tokenizer.Tokenizer, fixes #41Thomas Waldmann2015-02-241-1/+1
| | | | | | | | also added unit tests for both issues.
* | Remove redundant 'pass' from class definitions.Petr Spacek2015-02-121-1/+0
| |
* | Amend doc strings for all DNSExceptions to make them suitable for direct ↵Petr Spacek2015-02-121-2/+1
|/ | | | printing.
* doco fixesBob Halley2012-04-081-2/+2
|
* update copyrightsBob Halley2011-05-121-1/+1
|
* create exceptions with arguments as "raise E(args)" instead of "raise E, args"Bob Halley2010-01-141-20/+15
|
* update copyrights for 2010Bob Halley2010-01-131-1/+1
|
* add backwards compatibility for token objectsBob Halley2010-01-131-0/+16
|
* actually set has_escape correctly when building tokens with escapesBob Halley2010-01-121-1/+1
|
* handle escapes outside of names when reading text formatBob Halley2010-01-121-10/+43
|
* make a proper token object to facilitate future tokenization workBob Halley2010-01-121-59/+133
|
* update copyrightsBob Halley2009-06-181-1/+1
|
* update copyrights for 2007Bob Halley2007-01-011-1/+1
|
* allow BIND 8 TTL syntax in ttl-like places (SOA, SIG, RRSIG)Bob Halley2006-01-101-0/+7
|
* update copyrightsBob Halley2005-09-021-1/+1
| | | | | Original author: Bob Halley <halley@dnspython.org> Date: 2005-01-08 08:13:48
* remove cvs $Id$ tagsBob Halley2005-09-021-2/+0
| | | | | Original author: Bob Halley <halley@dnspython.org> Date: 2004-07-31 09:51:40
* accept the unknown RR syntax for known RR typesBob Halley2005-09-021-3/+3
| | | | | Original author: Bob Halley <halley@dnspython.org> Date: 2004-05-14 08:33:47
* initial importBob Halley2005-09-021-0/+424
Original author: Bob Halley <halley@dnspython.org> Date: 2004-03-23 21:57:40