diff hgext/win32text.py @ 29485:6a98f9408a50

py3: make files use absolute_import and print_function This patch includes addition of absolute_import and print_function to the files where they are missing. The modern importing conventions are also followed.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 03 Jul 2016 22:28:24 +0530
parents 4b0fc75f9403
children d5883fd055c6
line wrap: on
line diff
--- a/hgext/win32text.py	Fri Jul 01 19:17:45 2016 -0700
+++ b/hgext/win32text.py	Sun Jul 03 22:28:24 2016 +0530
@@ -41,10 +41,16 @@
   # or pretxnchangegroup.cr = python:hgext.win32text.forbidcr
 '''
 
+from __future__ import absolute_import
+
+import re
 from mercurial.i18n import _
-from mercurial.node import short
-from mercurial import util
-import re
+from mercurial.node import (
+    short,
+)
+from mercurial import (
+    util,
+)
 
 # Note for extension authors: ONLY specify testedwith = 'internal' for
 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should