Message ID | 7df6e8b3afa04c350a795a366ac9d6fbb7f31980.1567681249.git.mchehab+samsung@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/3] docs: sphinx: add SPDX header for some sphinx extensions | expand |
diff --git a/tools/perf/python/tracepoint.py b/tools/perf/python/tracepoint.py index eb76f6516247..b7717b501fd8 100755 --- a/tools/perf/python/tracepoint.py +++ b/tools/perf/python/tracepoint.py @@ -1,7 +1,6 @@ #! /usr/bin/python +# -*- coding: utf-8; mode: python -*- # SPDX-License-Identifier: GPL-2.0 -# -*- python -*- -# -*- coding: utf-8 -*- import perf diff --git a/tools/perf/python/twatch.py b/tools/perf/python/twatch.py index ff87ccf5b708..a95e59373ebd 100755 --- a/tools/perf/python/twatch.py +++ b/tools/perf/python/twatch.py @@ -1,7 +1,6 @@ #! /usr/bin/python +# -*- coding: utf-8; mode: python -*- # SPDX-License-Identifier: GPL-2.0-only -# -*- python -*- -# -*- coding: utf-8 -*- # twatch - Experimental use of the perf python interface # Copyright (C) 2011 Arnaldo Carvalho de Melo <acme@redhat.com> #
As stated at PEP-263, the coding tag should be at the first or second line. On those two scripts, the tag is at the wrong line. It also contains a separate e-macs line to tell it to consider the file as a python one. Merge this with the encoding tag, using the same coding line that we're using on other python files. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> --- tools/perf/python/tracepoint.py | 3 +-- tools/perf/python/twatch.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)