hgext/histedit.py
changeset 40652 291080871f50
parent 40602 c36175456350
child 41103 86f0ed7ac688
--- a/hgext/histedit.py	Fri Nov 16 14:21:47 2018 +0100
+++ b/hgext/histedit.py	Thu Nov 15 17:36:15 2018 -0500
@@ -183,11 +183,17 @@
 
 from __future__ import absolute_import
 
-import fcntl
+# chistedit dependencies that are not available everywhere
+try:
+    import fcntl
+    import termios
+except ImportError:
+    fcntl = None
+    termios = None
+
 import functools
 import os
 import struct
-import termios
 
 from mercurial.i18n import _
 from mercurial import (