Revision 11c684bf autotools/check-python-code

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

Also available in: Unified diff