14
0
forked from pool/python-py3dns

- Update to 3.2.1:

* various minor fixes
- Rebase patch python3-py3dns-handle-absent-resolv.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py3dns?expand=0&rev=5
This commit is contained in:
Tomáš Chvátal
2019-09-10 12:57:11 +00:00
committed by Git OBS Bridge
parent cd2c99dcd3
commit 85e002ff7f
5 changed files with 20 additions and 16 deletions

View File

@@ -7,20 +7,20 @@ Subject: [PATCH] Handle /etc/resolv.conf
DNS/Base.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/DNS/Base.py b/DNS/Base.py
index 4a70613..b5d97c8 100644
--- a/DNS/Base.py
+++ b/DNS/Base.py
@@ -11,7 +11,7 @@ Changes for Python3 port © 2011-14 Scott Kitterman <scott@kitterman.com>
Index: py3dns-3.2.1/DNS/Base.py
===================================================================
--- py3dns-3.2.1.orig/DNS/Base.py
+++ py3dns-3.2.1/DNS/Base.py
@@ -11,7 +11,7 @@ Changes for Python3 port © 2011-14 Scot
Base functionality. Request and Response classes, that sort of thing.
"""
-import socket, string, types, time, select
+import socket, string, types, time, select, warnings
import errno
from . import Type,Class,Opcode
import asyncore
#
@@ -49,8 +49,12 @@ defaults= { 'protocol':'udp', 'port':53, 'opcode':Opcode.QUERY,
@@ -50,8 +50,12 @@ defaults= { 'protocol':'udp', 'port':53,
def ParseResolvConf(resolv_path="/etc/resolv.conf"):
"parses the /etc/resolv.conf file and sets defaults for name servers"
@@ -35,6 +35,3 @@ index 4a70613..b5d97c8 100644
def ParseResolvConfFromIterable(lines):
"parses a resolv.conf formatted stream and sets defaults for name servers"
--
2.9.3