|
|
@ -14,6 +14,7 @@ |
|
|
|
# See the License for the specific language governing permissions and |
|
|
|
# See the License for the specific language governing permissions and |
|
|
|
# limitations under the License. |
|
|
|
# limitations under the License. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from __future__ import print_function |
|
|
|
import argparse |
|
|
|
import argparse |
|
|
|
import datetime |
|
|
|
import datetime |
|
|
|
import os |
|
|
|
import os |
|
|
@ -129,9 +130,9 @@ assert (re.search(RE_LICENSE['Makefile'], load('Makefile'))) |
|
|
|
def log(cond, why, filename): |
|
|
|
def log(cond, why, filename): |
|
|
|
if not cond: return |
|
|
|
if not cond: return |
|
|
|
if args.output == 'details': |
|
|
|
if args.output == 'details': |
|
|
|
print '%s: %s' % (why, filename) |
|
|
|
print('%s: %s' % (why, filename)) |
|
|
|
else: |
|
|
|
else: |
|
|
|
print filename |
|
|
|
print(filename) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# scan files, validate the text |
|
|
|
# scan files, validate the text |
|
|
|