summaryrefslogtreecommitdiff
path: root/hgext/zeroconf/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'hgext/zeroconf/__init__.py')
-rw-r--r--hgext/zeroconf/__init__.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/hgext/zeroconf/__init__.py b/hgext/zeroconf/__init__.py
index 52ceffa..e7d7364 100644
--- a/hgext/zeroconf/__init__.py
+++ b/hgext/zeroconf/__init__.py
@@ -32,8 +32,6 @@ from mercurial import extensions
from mercurial.hgweb import hgweb_mod
from mercurial.hgweb import hgwebdir_mod
-testedwith = 'internal'
-
# publish
server = None
@@ -46,7 +44,7 @@ def getip():
s.connect(('1.0.0.1', 0))
ip = s.getsockname()[0]
return ip
- except socket.error:
+ except:
pass
# Generic method, sometimes gives useless results
@@ -63,7 +61,7 @@ def getip():
s.connect(('1.0.0.1', 1))
ip = s.getsockname()[0]
return ip
- except socket.error:
+ except:
pass
return dumbip
@@ -121,8 +119,7 @@ class hgwebdirzc(hgwebdir_mod.hgwebdir):
name = os.path.basename(repo)
path = (prefix + repo).strip('/')
desc = u.config('web', 'description', name)
- publish(name, desc, path,
- util.getport(u.config("web", "port", 8000)))
+ publish(name, desc, path, util.getport(u.config("web", "port", 8000)))
# listen