windows: drop an unused method
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 13 Dec 2022 16:48:47 -0500
changeset 49800 c43b283a19c3
parent 49799 de284a0b5614
child 49801 9cd327509cd4
windows: drop an unused method The only caller was removed in 563eb25e079b.
mercurial/windows.py
--- a/mercurial/windows.py	Mon Dec 12 14:10:12 2022 -0500
+++ b/mercurial/windows.py	Tue Dec 13 16:48:47 2022 -0500
@@ -183,14 +183,6 @@
 listdir = osutil.listdir
 
 
-# copied from .utils.procutil, remove after Python 2 support was dropped
-def _isatty(fp):
-    try:
-        return fp.isatty()
-    except AttributeError:
-        return False
-
-
 def get_password():
     """Prompt for password with echo off, using Windows getch().