]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
9 years agoTry to shut up Travis. 202/head
Fred Morris [Sun, 18 Sep 2016 15:42:55 +0000 (08:42 -0700)] 
Try to shut up Travis.

9 years agoTruthiness of Answers
Fred Morris [Sat, 17 Sep 2016 22:54:28 +0000 (15:54 -0700)] 
Truthiness of Answers

Internally it was failing, because the rrset is None and the __len__ method was being invoked and not checking for that.

9 years agoTests for empty answers
Fred Morris [Sat, 17 Sep 2016 22:51:33 +0000 (15:51 -0700)] 
Tests for empty answers

9 years agoMerge pull request #198 from bastiak/members-fixes
Bob Halley [Thu, 4 Aug 2016 13:23:59 +0000 (06:23 -0700)] 
Merge pull request #198 from bastiak/members-fixes

Members fixes

9 years agoUse random.SystemRandom when available.
Bob Halley [Thu, 4 Aug 2016 13:03:31 +0000 (06:03 -0700)] 
Use random.SystemRandom when available.

9 years agoMerge pull request #194 from avylove/entropy_a
Bob Halley [Thu, 4 Aug 2016 12:58:22 +0000 (05:58 -0700)] 
Merge pull request #194 from avylove/entropy_a

Reseed entropy pool after forking

10 years agoPylint: make pylint happy with exceptions 198/head
Martin [Tue, 2 Aug 2016 22:07:13 +0000 (00:07 +0200)] 
Pylint: make pylint happy with exceptions

10 years agoFix parent definition of BaseResolverTests class
Martin [Tue, 2 Aug 2016 21:47:04 +0000 (23:47 +0200)] 
Fix parent definition of BaseResolverTests class

This class needs to have parent 'unittest.TestCase' otherwise test is not executed.

With this commit, BaseResolverTests are executed (number of tests increased, yay)

10 years agoReseed entropy pool after forking 194/head
Avram Lubkin [Tue, 26 Jul 2016 14:11:10 +0000 (10:11 -0400)] 
Reseed entropy pool after forking

10 years agoMerge pull request #191 from pspacek/master
Bob Halley [Tue, 12 Jul 2016 13:05:35 +0000 (06:05 -0700)] 
Merge pull request #191 from pspacek/master

Add method to force re-read resolv.conf: resolver.reset_default_resolver()

10 years agoAdd method to force re-read resolv.conf: resolver.reset_default_resolver() 191/head
Petr Spacek [Thu, 7 Jul 2016 14:36:13 +0000 (16:36 +0200)] 
Add method to force re-read resolv.conf: resolver.reset_default_resolver()

10 years agodo not complain about trailing newlines
Bob Halley [Sat, 9 Jul 2016 14:17:42 +0000 (07:17 -0700)] 
do not complain about trailing newlines

10 years agoMerge pull request #189 from sebix/dnssecimport
Bob Halley [Fri, 8 Jul 2016 12:51:10 +0000 (05:51 -0700)] 
Merge pull request #189 from sebix/dnssecimport

Style fixes in tests/test_dnssec

10 years agostyle: dnssec tests: import at top, cleaner skip 189/head
Sebastian Wagner [Sun, 3 Jul 2016 08:51:07 +0000 (10:51 +0200)] 
style: dnssec tests: import at top, cleaner skip

Signed-off-by: Sebastian Wagner <sebix@sebix.at>
10 years agoMerge pull request #187 from bastiak/pylint-round
Bob Halley [Sat, 2 Jul 2016 22:31:42 +0000 (15:31 -0700)] 
Merge pull request #187 from bastiak/pylint-round

Py3: round compatible with py2

10 years agoPy3: round compatible with py2 187/head
Martin [Sat, 2 Jul 2016 22:12:14 +0000 (00:12 +0200)] 
Py3: round compatible with py2

Python 3 and Python 2 uses different rounding strategies in round().
Function round_py2_compat() do rounding in py2 compatible strategy for both py2 and py3

10 years agoMerge pull request #177 from cdeccio/testNameFix
Bob Halley [Sat, 2 Jul 2016 21:36:50 +0000 (14:36 -0700)] 
Merge pull request #177 from cdeccio/testNameFix

Use meaningful test

10 years agoMerge pull request #176 from cdeccio/fixRootNameText
Bob Halley [Sat, 2 Jul 2016 21:36:43 +0000 (14:36 -0700)] 
Merge pull request #176 from cdeccio/fixRootNameText

Fix dns.name.Name.to_text()

10 years agoMerge pull request #186 from bastiak/pylint-iter
Bob Halley [Sat, 2 Jul 2016 21:36:05 +0000 (14:36 -0700)] 
Merge pull request #186 from bastiak/pylint-iter

Py3: do not use iter* methods with dict

10 years agoMerge pull request #185 from bastiak/pylint
Bob Halley [Sat, 2 Jul 2016 21:35:56 +0000 (14:35 -0700)] 
Merge pull request #185 from bastiak/pylint

Pylint: tests, examples

10 years agoMerge pull request #184 from waldyrious/patch-1
Bob Halley [Sat, 2 Jul 2016 21:34:45 +0000 (14:34 -0700)] 
Merge pull request #184 from waldyrious/patch-1

add license title

10 years agoPy3: do not use iter* methods with dict 186/head
Martin [Sat, 2 Jul 2016 21:12:56 +0000 (23:12 +0200)] 
Py3: do not use iter* methods with dict

10 years agoPylint: examples: py3 replace deprecated optparse with argparse 185/head
Martin [Sat, 2 Jul 2016 20:51:42 +0000 (22:51 +0200)] 
Pylint: examples: py3 replace deprecated optparse with argparse

10 years agoPylint: examples: enable pylint for examples/*.py
Martin [Sat, 2 Jul 2016 20:39:44 +0000 (22:39 +0200)] 
Pylint: examples: enable pylint for examples/*.py

10 years agoPylint: examples: fix redefined sys from outer scope error
Martin [Sat, 2 Jul 2016 20:38:16 +0000 (22:38 +0200)] 
Pylint: examples: fix redefined sys from outer scope error

This was more false positive than actual error, but I replaced sys.exit() by SystemExit exception  rather than disabling check there

10 years agoPylint: examples: fix basestring is not in py3
Martin [Sat, 2 Jul 2016 20:35:31 +0000 (22:35 +0200)] 
Pylint: examples: fix basestring is not in py3

10 years agoPylint: examples: fix extremenly long lines
Martin [Sat, 2 Jul 2016 20:30:23 +0000 (22:30 +0200)] 
Pylint: examples: fix extremenly long lines

10 years agoPylint: examples: fix redefined variables from outer scope
Martin [Sat, 2 Jul 2016 20:22:56 +0000 (22:22 +0200)] 
Pylint: examples: fix redefined variables from outer scope

10 years agoPylint: examples: cmp builtin is not in py3
Martin [Sat, 2 Jul 2016 20:22:20 +0000 (22:22 +0200)] 
Pylint: examples: cmp builtin is not in py3

10 years agoPylint: examples: fix singleton comparison
Martin [Sat, 2 Jul 2016 01:37:33 +0000 (03:37 +0200)] 
Pylint: examples: fix singleton comparison

10 years agoPylint: examples: fix whitespace errors
Martin [Sat, 2 Jul 2016 01:36:24 +0000 (03:36 +0200)] 
Pylint: examples: fix whitespace errors

10 years agoPylint: examples: do py2/3 compatible prints
Martin [Sat, 2 Jul 2016 01:28:47 +0000 (03:28 +0200)] 
Pylint: examples: do py2/3 compatible prints

10 years agoPylint: enable check for tests
Martin [Sat, 2 Jul 2016 01:11:11 +0000 (03:11 +0200)] 
Pylint: enable check for tests

10 years agoPylint: tests: disable check broad-except locally in resolver test
Martin [Sat, 2 Jul 2016 01:10:51 +0000 (03:10 +0200)] 
Pylint: tests: disable check broad-except locally in resolver test

10 years agoPy3: fix tests
Martin [Sat, 2 Jul 2016 01:17:28 +0000 (03:17 +0200)] 
Py3: fix tests

10 years agoFix grange.from_text()
Martin [Sat, 2 Jul 2016 01:00:14 +0000 (03:00 +0200)] 
Fix grange.from_text()

Would be possible to use regexp instead?

Fixing this error from tests:

======================================================================
ERROR: testFailFromText2 (test_grange.GRangeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "~/dnspython/tests/test_grange.py", line 81, in testFailFromText2
    self.assertRaises(dns.exception.SyntaxError, bad)
  File "/usr/lib64/python2.7/unittest/case.py", line 511, in assertRaises
    callableObj(*args, **kwargs)
  File "~/dnspython/tests/test_grange.py", line 80, in bad
    dns.grange.from_text('%s-%d/%d' % (start, stop, step))
  File "~/dnspython/dns/grange.py", line 39, in from_text
    start = int(cur)
ValueError: invalid literal for int() with base 10: ''

10 years agoPylint: tests: fix redefined functions
Martin [Sat, 2 Jul 2016 00:30:08 +0000 (02:30 +0200)] 
Pylint: tests: fix redefined functions

This fix increases number of tests from
Ran 424 tests in 13.300s
to
Ran 435 tests in 13.679s

10 years agoPylint: tests: fix superfluous-parens
Martin [Sat, 2 Jul 2016 00:27:08 +0000 (02:27 +0200)] 
Pylint: tests: fix superfluous-parens

10 years agoPylint: tests: remove semicolon
Martin [Sat, 2 Jul 2016 00:26:15 +0000 (02:26 +0200)] 
Pylint: tests: remove semicolon

10 years agoPylint: tests: fix multiple statements on line
Martin [Sat, 2 Jul 2016 00:24:59 +0000 (02:24 +0200)] 
Pylint: tests: fix multiple statements on line

10 years agoPylint: tests: disable line-too-long check locally
Martin [Sat, 2 Jul 2016 00:20:34 +0000 (02:20 +0200)] 
Pylint: tests: disable line-too-long check locally

10 years agoPylint: tests: Fix whitespace errors
Martin [Sat, 2 Jul 2016 00:16:39 +0000 (02:16 +0200)] 
Pylint: tests: Fix whitespace errors

10 years agoPylint: tests: fix singleton comparison
Martin [Fri, 1 Jul 2016 23:59:38 +0000 (01:59 +0200)] 
Pylint: tests: fix singleton comparison

10 years agoPylint: tests: fix reimports
Martin [Fri, 1 Jul 2016 23:56:29 +0000 (01:56 +0200)] 
Pylint: tests: fix reimports

10 years agoPylint: tests: py3: use print function
Martin [Fri, 1 Jul 2016 23:53:36 +0000 (01:53 +0200)] 
Pylint: tests: py3: use print function

10 years agoPylint: tests: remove unused imports
Martin [Fri, 1 Jul 2016 23:46:33 +0000 (01:46 +0200)] 
Pylint: tests: remove unused imports

10 years agoMerge pull request #178 from bastiak/pylint
Bob Halley [Fri, 1 Jul 2016 23:07:43 +0000 (16:07 -0700)] 
Merge pull request #178 from bastiak/pylint

Add Pylint

10 years agoadd license title 184/head
Waldir Pimenta [Fri, 1 Jul 2016 21:06:01 +0000 (22:06 +0100)] 
add license title

It's not strictly required, but it's useful metadata, and part of the recommended license template text (see http://choosealicense.com/licenses/isc/ and https://opensource.org/licenses/isc-license)

10 years agoPylint: enable superfluous-parens check 178/head
Martin Basti [Sun, 26 Jun 2016 23:15:31 +0000 (01:15 +0200)] 
Pylint: enable superfluous-parens check

10 years agoPylint: enable bad-whitespace check
Martin Basti [Sun, 26 Jun 2016 22:29:10 +0000 (00:29 +0200)] 
Pylint: enable bad-whitespace check

10 years agoPylint: enable delslice-method check
Martin Basti [Sun, 26 Jun 2016 22:21:42 +0000 (00:21 +0200)] 
Pylint: enable delslice-method check

__delslice__ is deprecated since python 2.6 and was removed in py3

10 years agoPylint: enable deprecated-lambda check
Martin Basti [Sun, 26 Jun 2016 22:06:42 +0000 (00:06 +0200)] 
Pylint: enable deprecated-lambda check

10 years agoPylint: enable old-division check
Martin Basti [Sun, 26 Jun 2016 22:03:54 +0000 (00:03 +0200)] 
Pylint: enable old-division check

10 years agoPylint: enable range-builtin-not-iterating check
Martin Basti [Sun, 26 Jun 2016 21:55:36 +0000 (23:55 +0200)] 
Pylint: enable range-builtin-not-iterating check

10 years agoPylint: enable undefined-variable check
Martin Basti [Sun, 26 Jun 2016 21:51:57 +0000 (23:51 +0200)] 
Pylint: enable undefined-variable check

10 years agoPylint: enable multiple py3 *-builtin checks
Martin Basti [Sun, 26 Jun 2016 21:19:25 +0000 (23:19 +0200)] 
Pylint: enable multiple py3 *-builtin checks

10 years agoPylint: enable unneeded-not check
Martin Basti [Sun, 26 Jun 2016 20:08:59 +0000 (22:08 +0200)] 
Pylint: enable unneeded-not check

10 years agoPylint: enable unnecessary-lambda check
Martin Basti [Sun, 26 Jun 2016 19:57:47 +0000 (21:57 +0200)] 
Pylint: enable unnecessary-lambda check

10 years agoPylint: enable undefined-loop-variable check
Martin Basti [Sun, 26 Jun 2016 19:55:17 +0000 (21:55 +0200)] 
Pylint: enable undefined-loop-variable check

10 years agoPylint: enable unused-import check
Martin Basti [Sun, 26 Jun 2016 19:31:44 +0000 (21:31 +0200)] 
Pylint: enable unused-import check

10 years agoPylint: NotImplementedError
Martin Basti [Sun, 26 Jun 2016 19:29:22 +0000 (21:29 +0200)] 
Pylint: NotImplementedError

10 years agoPylint: enable import-error check
Martin Basti [Sun, 26 Jun 2016 19:15:50 +0000 (21:15 +0200)] 
Pylint: enable import-error check

10 years agoAdd pylint checker
Martin Basti [Sun, 26 Jun 2016 19:09:04 +0000 (21:09 +0200)] 
Add pylint checker

10 years agoFix dns.name.Name.to_text() 176/head
Casey Deccio [Sat, 25 Jun 2016 00:51:54 +0000 (20:51 -0400)] 
Fix dns.name.Name.to_text()

Fix dns.name.Name.to_text(), so root is displayed properly.

10 years agoUse meaningful test 177/head
Casey Deccio [Sat, 25 Jun 2016 00:44:29 +0000 (20:44 -0400)] 
Use meaningful test

Test added in 257f2a didn't actually test the problem addressed in
257f2a.  This one does.

10 years agoFix another Python 2/3 code merge unicode issue.
Bob Halley [Sat, 18 Jun 2016 13:51:36 +0000 (06:51 -0700)] 
Fix another Python 2/3 code merge unicode issue.

10 years agoMerge pull request #109 from cluck/master
Bob Halley [Mon, 13 Jun 2016 14:39:41 +0000 (07:39 -0700)] 
Merge pull request #109 from cluck/master

Expose responses on NXDOMAIN exception

10 years agoPass partial answer when raising DNSException, added unit tests 109/head
Claudio Luck [Wed, 27 May 2015 15:54:13 +0000 (17:54 +0200)] 
Pass partial answer when raising DNSException, added unit tests

10 years agoConvert TSIG other data into a binary type if needed.
Bob Halley [Wed, 1 Jun 2016 13:48:56 +0000 (06:48 -0700)] 
Convert TSIG other data into a binary type if needed.

10 years agoinc version
Bob Halley [Wed, 1 Jun 2016 13:16:51 +0000 (06:16 -0700)] 
inc version

10 years agoFix problems with escaping in quoted strings and names.
Bob Halley [Wed, 1 Jun 2016 13:15:35 +0000 (06:15 -0700)] 
Fix problems with escaping in quoted strings and names.
[issue #168]

10 years agoEncode and decode TSIG keyrings as needed on Python 3.
Bob Halley [Tue, 31 May 2016 23:28:53 +0000 (16:28 -0700)] 
Encode and decode TSIG keyrings as needed on Python 3.
[issue #171]

10 years agodns.ipv6.inet_ntoa() should return a string.
Bob Halley [Tue, 31 May 2016 13:46:41 +0000 (06:46 -0700)] 
dns.ipv6.inet_ntoa() should return a string.
[issue #167]

10 years agorevert prior patch as things are more messed up than I thought!
Bob Halley [Mon, 30 May 2016 23:34:32 +0000 (16:34 -0700)] 
revert prior patch as things are more messed up than I thought!

10 years agodns.ipv6.inet_ntoa() should return a string.
Bob Halley [Mon, 30 May 2016 23:24:25 +0000 (16:24 -0700)] 
dns.ipv6.inet_ntoa() should return a string.
[issue #167]

10 years agoAdd socket_factory to allow socket creation to be overridden when needed.
Bob Halley [Sat, 28 May 2016 19:45:46 +0000 (12:45 -0700)] 
Add socket_factory to allow socket creation to be overridden when needed.

10 years agoMerge pull request #166 from kitterma/master
Bob Halley [Sat, 28 May 2016 17:07:11 +0000 (10:07 -0700)] 
Merge pull request #166 from kitterma/master

Automatically skip tests that require Internet access if it is not av…

10 years agoAutomatically skip tests that require Internet access if it is not available 166/head
Scott Kitterman [Sat, 28 May 2016 16:46:20 +0000 (12:46 -0400)] 
Automatically skip tests that require Internet access if it is not available

Add code in tests/test_resolver.py to check if dnspython.org can be looked up by socket.gethostbyname as a test of Internet reachability
Skip tests requiring Internet access (testZoneForName1, testZoneForName2, and testZoneForName3) if it is not available

10 years agoPrep 1.14.0 v1.14.0
Bob Halley [Fri, 27 May 2016 16:12:53 +0000 (09:12 -0700)] 
Prep 1.14.0

10 years agoMerge pull request #164 from jwilk/spelling
Bob Halley [Thu, 26 May 2016 21:45:18 +0000 (14:45 -0700)] 
Merge pull request #164 from jwilk/spelling

Fix typos

10 years agoFix typos 164/head
Jakub Wilk [Thu, 26 May 2016 21:40:29 +0000 (23:40 +0200)] 
Fix typos

10 years agoAdd CSYNC
Bob Halley [Mon, 23 May 2016 22:18:47 +0000 (15:18 -0700)] 
Add CSYNC

10 years agoharmonize example zone
Bob Halley [Fri, 20 May 2016 18:41:39 +0000 (11:41 -0700)] 
harmonize example zone

10 years agoLOC processing lost N/S or E/W info when values were within a
Bob Halley [Fri, 20 May 2016 14:01:27 +0000 (07:01 -0700)] 
LOC processing lost N/S or E/W info when values were within a
degree of the equator or the prime meridian.

10 years agotry winreg on Windows [issue #160]
Bob Halley [Tue, 17 May 2016 14:25:15 +0000 (07:25 -0700)] 
try winreg on Windows [issue #160]

10 years agoMerge pull request #159 from n8henrie/issue_157
Bob Halley [Sun, 15 May 2016 12:47:19 +0000 (05:47 -0700)] 
Merge pull request #159 from n8henrie/issue_157

Explicitly use bytes to avoid TypeError with concatenation

10 years agoMerge pull request #158 from n8henrie/issue_156
Bob Halley [Sun, 15 May 2016 12:46:52 +0000 (05:46 -0700)] 
Merge pull request #158 from n8henrie/issue_156

Add compatibility with BlockingIOError for Python3

10 years agoExplicitly use bytes to avoid TypeError with concatenation 159/head
Nathan Henrie [Sat, 14 May 2016 21:28:58 +0000 (15:28 -0600)] 
Explicitly use bytes to avoid TypeError with concatenation

Fixes rthalley/dnspython#157

On Python3, this previously would raise a TypeError when one tried to
add bytes and a string, this initializes s and n to bytes instead.

10 years agoAdd compatibility with BlockingIOError for Python3 158/head
Nathan Henrie [Sat, 14 May 2016 21:10:52 +0000 (15:10 -0600)] 
Add compatibility with BlockingIOError for Python3

Fixes rthalley/dnspython#156

At least in Python3.5, BlockingIOError is not subscriptable. Its
`.errno` attribute seems to be able to provide the necessary
information.

10 years agoUpdate with recent changes
Bob Halley [Fri, 13 May 2016 13:44:37 +0000 (06:44 -0700)] 
Update with recent changes

10 years agodns.message.make_query() now interprets any setting that implies
Bob Halley [Fri, 13 May 2016 13:43:36 +0000 (06:43 -0700)] 
dns.message.make_query() now interprets any setting that implies
EDNS as a request to turn on EDNS, if use_edns has not been set
explicitly.

10 years agoTry again to fix TSIG hashes
Bob Halley [Thu, 12 May 2016 21:19:35 +0000 (14:19 -0700)] 
Try again to fix TSIG hashes

10 years agoFix TSIG algorithm to hash mapping
Bob Halley [Thu, 12 May 2016 21:15:34 +0000 (14:15 -0700)] 
Fix TSIG algorithm to hash mapping

10 years agoDo not reference docstrings in exception formatting as they may be stripped.
Bob Halley [Thu, 12 May 2016 13:20:01 +0000 (06:20 -0700)] 
Do not reference docstrings in exception formatting as they may be stripped.
[issue #154]

10 years agoAllow an origin of None to be specified when constructing a
Bob Halley [Wed, 11 May 2016 21:54:30 +0000 (14:54 -0700)] 
Allow an origin of None to be specified when constructing a
Zone object.
[issue #153]

10 years agoDoc prep for 1.13 v1.13.0
Bob Halley [Tue, 10 May 2016 17:02:12 +0000 (10:02 -0700)] 
Doc prep for 1.13

10 years agounichr portability support
Bob Halley [Tue, 10 May 2016 16:57:17 +0000 (09:57 -0700)] 
unichr portability support

10 years agoFix problems with
Bob Halley [Sun, 8 May 2016 18:53:19 +0000 (11:53 -0700)] 
Fix problems with

dns.name.from_unicode(u'\u00ff' * 60)
dns.name.from_unicode(u'\\255')

10 years agoAllow zone origin to be specified as a string.
Bob Halley [Sun, 8 May 2016 18:41:21 +0000 (11:41 -0700)] 
Allow zone origin to be specified as a string.

10 years agofix another indexing keys() issue.
Bob Halley [Sun, 8 May 2016 17:43:31 +0000 (10:43 -0700)] 
fix another indexing keys() issue.