Message ID | 151629549711.18276.15497684562308683805.stgit@bahia.lan |
---|---|
State | New |
Headers | show |
Series | scripts/qemu-gdb/timers.py: define encoding in header comment | expand |
Greg Kurz <groug@kaod.org> writes: > This is required otherwise python complains because of the > accentuated letter in Alex's last name: > > Traceback (most recent call last): > File "scripts/qemu-gdb.py", line 29, in <module> > from qemugdb import aio, mtree, coroutine, tcg, timers > File "scripts/qemugdb/timers.py", line 1 > SyntaxError: Non-ASCII character '\xc3' in file scripts/qemugdb/timers.py > on line 1, but no encoding declared; > see http://www.python.org/peps/pep-0263.html for details > > Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> > --- > scripts/qemugdb/timers.py | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/qemugdb/timers.py b/scripts/qemugdb/timers.py > index be71a001e333..51ea04b5e2ec 100644 > --- a/scripts/qemugdb/timers.py > +++ b/scripts/qemugdb/timers.py > @@ -1,4 +1,5 @@ > #!/usr/bin/python > +# -*- coding: utf-8 -*- > # GDB debugging support > # > # Copyright 2017 Linaro Ltd -- Alex Bennée
diff --git a/scripts/qemugdb/timers.py b/scripts/qemugdb/timers.py index be71a001e333..51ea04b5e2ec 100644 --- a/scripts/qemugdb/timers.py +++ b/scripts/qemugdb/timers.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # GDB debugging support # # Copyright 2017 Linaro Ltd
This is required otherwise python complains because of the accentuated letter in Alex's last name: Traceback (most recent call last): File "scripts/qemu-gdb.py", line 29, in <module> from qemugdb import aio, mtree, coroutine, tcg, timers File "scripts/qemugdb/timers.py", line 1 SyntaxError: Non-ASCII character '\xc3' in file scripts/qemugdb/timers.py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details Signed-off-by: Greg Kurz <groug@kaod.org> --- scripts/qemugdb/timers.py | 1 + 1 file changed, 1 insertion(+)