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

login
register
mail settings
Submitter Augie Fackler
Date Aug. 23, 2017, 2:55 p.m.
Message ID <ec39438cd9f338b3d430.1503500101@imladris.local>
Download mbox | patch
Permalink /patch/23231/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 23, 2017, 2:55 p.m.
# HG changeset patch
# User Augie Fackler <raf@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

Patch

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()