mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-22 15:14:44 +00:00
resolv.conf
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@150 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
276aa36107
commit
b0c3d92ec8
3 changed files with 9 additions and 5 deletions
|
|
@ -17,10 +17,8 @@ def ParseResolvConf():
|
|||
global defaults
|
||||
lines=open("/etc/resolv.conf").readlines()
|
||||
for line in lines:
|
||||
string.strip(line)
|
||||
if not line:
|
||||
continue
|
||||
if line[0]==';' or line[0]=='#':
|
||||
line = string.strip(line)
|
||||
if (not line) or line[0]==';' or line[0]=='#':
|
||||
continue
|
||||
fields=string.split(line)
|
||||
if fields[0]=='domain':
|
||||
|
|
|
|||
6
debian/changelog
vendored
6
debian/changelog
vendored
|
|
@ -1,3 +1,9 @@
|
|||
linkchecker (1.2.5) unstable; urgency=low
|
||||
|
||||
* fix /etc/resolv.conf parsing again (this time for real)
|
||||
|
||||
-- Bastian Kleineidam <calvin@users.sourceforge.net> Mon, 21 Aug 2000 23:59:35 +0200
|
||||
|
||||
linkchecker (1.2.4) unstable; urgency=low
|
||||
|
||||
* fixed parsing of /etc/resolv.conf with empty lines
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -107,7 +107,7 @@ class LCDistribution(Distribution):
|
|||
|
||||
|
||||
setup (name = "LinkChecker",
|
||||
version = "1.2.4",
|
||||
version = "1.2.5",
|
||||
description = "check links of HTML pages",
|
||||
author = "Bastian Kleineidam",
|
||||
author_email = "calvin@users.sourceforge.net",
|
||||
|
|
|
|||
Loading…
Reference in a new issue