I think this code that was removed at the end of last year.
- cpp = filename.endswith('.cc') or filename.endswith('.hh')
- py = filename.endswith('.py')
-
- if py + cpp != 1:
- raise AttributeError, \
- "I don't know how to deal with the file %s" % filename
-
On 09/24/11 08:08, Steve Reinhardt wrote:
> Anyone have a clue where 'cpp' is supposed to come from? It's not set
> anywhere in style.py.
>
> % python util/style.py chkformat src/sim/main.cc
> Traceback (most recent call last):
> File "util/style.py", line 543, in <module>
> validate(filename, stats=stats, verbose=verbose, exit_code=code)
> File "util/style.py", line 363, in validate
> if cpp:
> NameError: global name 'cpp' is not defined
> _______________________________________________
> gem5-dev mailing list
> [email protected]
> http://m5sim.org/mailman/listinfo/gem5-dev
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev