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