[PATCH 02 of 10] contrib: update hg-ssh to conform with import style checks

Augie Fackler raf at durin42.com
Wed Aug 23 10:55:01 EDT 2017


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1503425508 14400
#      Tue Aug 22 14:11:48 2017 -0400
# Node ID ec39438cd9f338b3d43075bc4eb388b20142385d
# Parent  e915b9703f675b2f76c512347ddff0f6c65a9748
contrib: update hg-ssh to conform with import style checks

diff --git a/contrib/hg-ssh b/contrib/hg-ssh
--- a/contrib/hg-ssh
+++ b/contrib/hg-ssh
@@ -28,13 +28,19 @@ command="cd repos && hg-ssh user/thomas/
 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()


More information about the Mercurial-devel mailing list