diff mercurial/url.py @ 50928:d718eddf01d9

safehasattr: drop usage in favor of hasattr The two functions should now be equivalent at least in their usage in core.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 31 Aug 2023 23:56:15 +0200
parents bc9c9ed0659d
children ace0da86edd0
line wrap: on
line diff
--- a/mercurial/url.py	Thu Dec 08 15:33:19 2022 +0100
+++ b/mercurial/url.py	Thu Aug 31 23:56:15 2023 +0200
@@ -190,7 +190,7 @@
     return _sendfile
 
 
-has_https = util.safehasattr(urlreq, 'httpshandler')
+has_https = hasattr(urlreq, 'httpshandler')
 
 
 class httpconnection(keepalive.HTTPConnection):