diff contrib/hg-ssh @ 33891:42bc7f39376b

contrib: update hg-ssh to conform with import style checks
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 14:11:48 -0400
parents 77eaf9539499
children dc1ed7fe33e4
line wrap: on
line diff
--- 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()