# HG changeset patch # User Augie Fackler <raf@durin42.com> # Date 2017-08-22 18:11:48 # Node ID 42bc7f39376bc5b6c96fe35b591229d7f2f4970a # Parent 3de9a2df641191755f9a58abb6363b0620ff065d 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()