diff hgext/pager.py @ 14945:11aad09a6370

hgext: replace uses of hasattr with util.safehasattr
author Augie Fackler <durin42@gmail.com>
date Mon, 25 Jul 2011 20:37:12 -0500
parents 76f295eaed86
children 369741ef7253
line wrap: on
line diff
--- a/hgext/pager.py	Mon Jul 25 15:30:19 2011 -0500
+++ b/hgext/pager.py	Mon Jul 25 20:37:12 2011 -0500
@@ -58,7 +58,7 @@
 from mercurial.i18n import _
 
 def _runpager(p):
-    if not hasattr(os, 'fork'):
+    if not util.safehasattr(os, 'fork'):
         sys.stdout = util.popen(p, 'wb')
         if util.isatty(sys.stderr):
             sys.stderr = sys.stdout