# HG changeset patch # User Thomas Arendsen Hein # Date 2010-12-03 10:23:38 # Node ID 637627f31c74bb51f4e1f9c81ed59e6ee1e1bf63 # Parent 8c6b7a5f38c4585b1b2c2ceaffa8023f36a18479 check-code: check for gratuitous whitespace after Python keywords diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -8,6 +8,7 @@ # GNU General Public License version 2 or any later version. import re, glob, os, sys +import keyword import optparse def repquote(m): @@ -136,6 +137,8 @@ pypats = [ (r'(?< ](\+=|-=|!=|<>|<=|>=|<<=|>>=)\S',