changeset 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 3de9a2df6411
children 78f644fdaa2a
files contrib/hg-ssh
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
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()