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