Revision 11c684bf

b/autotools/check-python-code
31 31
    echo "Found end-of-line-whitespace in $script" >&2
32 32
  fi
33 33

  
34
  # FIXME: This will also match "foo.xrange(...)"
35
  if grep -n -H -E '^[^#]*\<xrange\>' "$script"; then
36
    let ++problems
37
    echo "Forbidden function 'xrange' used in $script" >&2
38
  fi
39

  
34 40
  if [[ "$(wc --max-line-length < "$script")" -gt 80 ]]; then
35 41
    let ++problems
36 42
    echo "Longest line in $script is longer than 80 characters" >&2
b/pylintrc
31 31
inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
32 32
good-names = i,j,k,_
33 33
bad-names = foo,bar,baz,toto,tutu,tata
34
bad-functions =
34
bad-functions = xrange
35 35

  
36 36
[TYPECHECK]
37 37
ignore-mixin-members = yes

Also available in: Unified diff