# HG changeset patch # User Yuya Nishihara # Date 1471335354 -32400 # Node ID 6ab838b20359a5b9220192be1c3a45f9417daf54 # Parent 142ae01820a3586b213ad39546e5b90a3721cb7b check-code: allow assignment to hasattr variable diff -r 142ae01820a3 -r 6ab838b20359 contrib/check-code.py --- a/contrib/check-code.py Mon Aug 15 16:07:55 2016 +0900 +++ b/contrib/check-code.py Tue Aug 16 17:15:54 2016 +0900 @@ -295,7 +295,7 @@ "comparison with singleton, use 'is' or 'is not' instead"), (r'^\s*(while|if) [01]:', "use True/False for constant Boolean expression"), - (r'(?:(?