# HG changeset patch # User Siddharth Agarwal # Date 2017-05-21 20:34:42 # Node ID 1651977596c008cce8a697f7e0277c4aff366ea8 # Parent f40dc6f7c12f36fb56dbadeb32a96ee25e6bacbb check-code: allow skipping hasattr check in py3-only code hasattr is safe in Python 3, and in an upcoming patch we can't use util.safehasattr. diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -300,7 +300,8 @@ pypats = [ (r'^\s*(while|if) [01]:', "use True/False for constant Boolean expression"), (r'(?:(?