Fix minor bug in util/style.py
authorSteve Reinhardt <stever@gmail.com>
Tue, 11 Dec 2007 18:41:30 +0000 (10:41 -0800)
committerSteve Reinhardt <stever@gmail.com>
Tue, 11 Dec 2007 18:41:30 +0000 (10:41 -0800)
--HG--
extra : convert_revision : d37accc884c2967d87dd267debab5afeb8b6ed85

util/style.py

index 18b224f276a99142b7f73ddef5451decd1565ef6..a6a2377aee260bf16f1f5af5fa2952cd9a6d5051 100644 (file)
@@ -402,7 +402,7 @@ if __name__ == '__main__':
                     print '>>%s<<' % line[:-1]
     elif command == 'chkformat':
         stats = ValidationStats()
-        for filename in files:
+        for filename in args:
             validate(filename, stats=stats, verbose=verbose, exit_code=code)
 
         if verbose > 0: