# HG changeset patch # User Patrick Mezard # Date 2012-04-13 13:07:13 # Node ID c3aedd526d530506891caf690ff9688404bb5ea8 # Parent 03e408a122c40ce974d648f5c05177676adfbc72 mq: replace hasattr() with util.safehasattr(), update check-code.py diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -177,7 +177,7 @@ pypats = [ "comparison with singleton, use 'is' or 'is not' instead"), (r'^\s*(while|if) [01]:', "use True/False for constant Boolean expression"), - (r'(?