From b1cf7ac5829ebbbe83c6045491ba38367e5aa64c Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Sat, 26 Aug 2017 21:42:11 +0100 Subject: Define source code encoding The default source code encoding in Python2.* is ASCII (PEP 263 [1]) and in Python3.* is UTF-8 (PEP 3120 [2]). Define the encoding on top of each file for consistency. [1] https://www.python.org/dev/peps/pep-0263/ [2] https://www.python.org/dev/peps/pep-3120/ --- src/virtBootstrap/sources/__init__.py | 1 + src/virtBootstrap/sources/docker_source.py | 1 + src/virtBootstrap/sources/file_source.py | 1 + 3 files changed, 3 insertions(+) (limited to 'src/virtBootstrap/sources') diff --git a/src/virtBootstrap/sources/__init__.py b/src/virtBootstrap/sources/__init__.py index be6b25c..d858466 100644 --- a/src/virtBootstrap/sources/__init__.py +++ b/src/virtBootstrap/sources/__init__.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- """ sources - Class definitions which process container image or tarball to extract the root file system in destination diff --git a/src/virtBootstrap/sources/docker_source.py b/src/virtBootstrap/sources/docker_source.py index 3500bf1..ef72d64 100644 --- a/src/virtBootstrap/sources/docker_source.py +++ b/src/virtBootstrap/sources/docker_source.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Authors: Cedric Bosdonnat # # Copyright (C) 2017 SUSE, Inc. diff --git a/src/virtBootstrap/sources/file_source.py b/src/virtBootstrap/sources/file_source.py index 63dd4d2..44f4fa6 100644 --- a/src/virtBootstrap/sources/file_source.py +++ b/src/virtBootstrap/sources/file_source.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Authors: Cedric Bosdonnat # # Copyright (C) 2017 SUSE, Inc. -- cgit