[PATCH] hgext/zeroconf/__init__.py: Separate relative and absolute imports

Renato Cunha renatoc at gmail.com
Mon Jun 14 14:59:28 CDT 2010


# HG changeset patch
# User Renato Cunha <renatoc at gmail.com>
# Date 1276545380 10800
# Node ID 30ab19b7513c20ce8483eccf62eb5f5e3429a062
# Parent  5bf46516063236efd8a2646643dba9ad3487a109
hgext/zeroconf/__init__.py: Separate relative and absolute imports.

2to3 complains when relative and absolute imports are mixed, this fix just
separates them on the zeroconf extension. According to 2to3, the other modules
are fine.

diff --git a/hgext/zeroconf/__init__.py b/hgext/zeroconf/__init__.py
--- a/hgext/zeroconf/__init__.py
+++ b/hgext/zeroconf/__init__.py
@@ -23,7 +23,9 @@
   zc-test = http://example.com:8000/test
 '''
 
-import Zeroconf, socket, time, os
+import socket, time, os
+
+import Zeroconf
 from mercurial import ui, hg, encoding
 from mercurial import extensions
 from mercurial.hgweb import hgweb_mod


More information about the Mercurial-devel mailing list