contrib: update hg-ssh to conform with import style checks
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 14:11:48 -0400
changeset 33891 42bc7f39376b
parent 33890 3de9a2df6411
child 33892 78f644fdaa2a
contrib: update hg-ssh to conform with import style checks
contrib/hg-ssh
--- a/contrib/hg-ssh	Tue Aug 22 12:59:21 2017 -0400
+++ b/contrib/hg-ssh	Tue Aug 22 14:11:48 2017 -0400
@@ -28,13 +28,19 @@
 You can also add a --read-only flag to allow read-only access to a key, e.g.:
 command="hg-ssh --read-only repos/*"
 """
+from __future__ import absolute_import
+
+import os
+import shlex
+import sys
 
 # enable importing on demand to reduce startup time
-from mercurial import demandimport; demandimport.enable()
+import hgdemandimport ; hgdemandimport.enable()
 
-from mercurial import dispatch, ui as uimod
-
-import sys, os, shlex
+from mercurial import (
+    dispatch,
+    ui as uimod,
+)
 
 def main():
     cwd = os.getcwd()