[PATCH 1 of 2] histedit: conditionalize the imports of 'fcntl' and 'termios'

Yuya Nishihara yuya at tcha.org
Fri Nov 16 06:48:30 EST 2018


On Thu, 15 Nov 2018 17:41:20 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1542321375 18000
> #      Thu Nov 15 17:36:15 2018 -0500
> # Node ID 3069b205bc1d99e8dc0ad9a15a343670ed0039eb
> # Parent  442f933f61e4c81148dcc192f0ac535bc3925529
> histedit: conditionalize the imports of 'fcntl' and 'termios'

Queued, thanks.

> @@ -183,11 +183,17 @@ unexpectedly::
>  
>  from __future__ import absolute_import
>  
> -import fcntl
> +# chistedit dependencies that are not available everywhere
> +try:
> +    import fcntl

This is fine because fcntl is excluded from the demand importer, but termios
isn't. However, I expect termios will be removed in favor of scmutil function.


More information about the Mercurial-devel mailing list