diff --git a/examples/barcodes.py b/examples/barcodes.py index 9eec4f5..96e7f74 100644 --- a/examples/barcodes.py +++ b/examples/barcodes.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/codepage_tables.py b/examples/codepage_tables.py index e5b0d66..a43d04e 100644 --- a/examples/codepage_tables.py +++ b/examples/codepage_tables.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """Prints code page tables. """ from __future__ import absolute_import diff --git a/examples/qr_code.py b/examples/qr_code.py index 8fa9341..6af606c 100644 --- a/examples/qr_code.py +++ b/examples/qr_code.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/software_barcode.py b/examples/software_barcode.py index 458cff0..b8b9595 100644 --- a/examples/software_barcode.py +++ b/examples/software_barcode.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/examples/weather.py b/examples/weather.py index b370820..ccd05f4 100644 --- a/examples/weather.py +++ b/examples/weather.py @@ -1,5 +1,5 @@ -#!/usr/bin/python - +#!/usr/bin/env python +# -*- coding: utf-8 -*- # Adapted script from Adafruit # Weather forecast for Raspberry Pi w/Adafruit Mini Thermal Printer. diff --git a/setup.py b/setup.py index dbdcaae..6d929fc 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division diff --git a/src/escpos/capabilities.py b/src/escpos/capabilities.py index cebcfe8..a4a9e81 100644 --- a/src/escpos/capabilities.py +++ b/src/escpos/capabilities.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/src/escpos/cli.py b/src/escpos/cli.py index 7728c5b..15f08ce 100644 --- a/src/escpos/cli.py +++ b/src/escpos/cli.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding: utf-8 -*- # PYTHON_ARGCOMPLETE_OK """ CLI diff --git a/src/escpos/codepages.py b/src/escpos/codepages.py index a015ea4..5f2a17c 100644 --- a/src/escpos/codepages.py +++ b/src/escpos/codepages.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + from __future__ import absolute_import from __future__ import division from __future__ import print_function diff --git a/src/escpos/config.py b/src/escpos/config.py index d6a708f..686584a 100644 --- a/src/escpos/config.py +++ b/src/escpos/config.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ ESC/POS configuration manager. This module contains the implentations of abstract base class :py:class:`Config`. diff --git a/src/escpos/escpos.py b/src/escpos/escpos.py index f6ff53b..84a7aa5 100644 --- a/src/escpos/escpos.py +++ b/src/escpos/escpos.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- """ Main class diff --git a/src/escpos/image.py b/src/escpos/image.py index 5556336..51edaf9 100644 --- a/src/escpos/image.py +++ b/src/escpos/image.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ Image format handling class This module contains the image format handler :py:class:`EscposImage`. diff --git a/src/escpos/magicencode.py b/src/escpos/magicencode.py index d80bc00..29c05ff 100644 --- a/src/escpos/magicencode.py +++ b/src/escpos/magicencode.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # -*- coding: utf-8 -*- """ Magic Encode