Append vim config to resolver.py

This commit is contained in:
Stephan Erb 2008-12-27 12:28:39 +00:00
parent 233848aec0
commit c373f044db
1 changed files with 4 additions and 2 deletions

View File

@ -179,7 +179,7 @@ class NSLookupResolver(CommonResolver):
def _parse_srv_result_nt(self, fqdn, result):
# output from win32 nslookup command
if not result:
if not result:
return []
hosts = []
lines = result.replace('\r','').split('\n')
@ -229,7 +229,7 @@ class NSLookupResolver(CommonResolver):
def _parse_srv_result_posix(self, fqdn, result):
# typical output of bind-tools nslookup command:
# _xmpp-client._tcp.jabber.org service = 30 30 5222 jabber.org.
if not result:
if not result:
return []
hosts = []
lines = result.split('\n')
@ -426,3 +426,5 @@ if __name__ == '__main__':
win.show_all()
gobject.timeout_add(200, idlequeue.process)
gtk.main()
# vim: se ts=3: