[game-data-packager] 16/18: Set UTF-8 encoding the way Python likes
Simon McVittie
smcv at debian.org
Thu Jan 22 12:40:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to branch master
in repository game-data-packager.
commit c37395f7f52eca9f6747db90e461253ddd1ebbd4
Author: Simon McVittie <smcv at debian.org>
Date: Thu Jan 22 12:14:17 2015 +0000
Set UTF-8 encoding the way Python likes
---
Makefile | 4 ++--
game_data_packager/__init__.py | 2 +-
game_data_packager/__main__.py | 2 +-
game_data_packager/check_syntax.py | 2 +-
game_data_packager/config.py | 2 +-
game_data_packager/games/__init__.py | 1 +
game_data_packager/games/doom_common.py | 2 +-
game_data_packager/games/lgeneral.py | 2 +-
game_data_packager/games/quake.py | 2 +-
game_data_packager/games/quake2.py | 2 +-
game_data_packager/games/rott.py | 2 +-
game_data_packager/games/tyrian.py | 2 +-
game_data_packager/games/wolf3d.py | 2 +-
game_data_packager/make_template.py | 2 +-
game_data_packager/paths.py | 2 ++
game_data_packager/util.py | 2 +-
game_data_packager/version.py | 2 ++
17 files changed, 20 insertions(+), 15 deletions(-)
diff --git a/Makefile b/Makefile
index 5d57152..0614f3c 100644
--- a/Makefile
+++ b/Makefile
@@ -52,8 +52,8 @@ clean:
for d in $(DIRS); do [ ! -d "$$d" ] || rmdir "$$d"; done
check:
- GDP_UNINSTALLED=1 PYTHONPATH=. python3 -m game_data_packager.check_syntax
- pyflakes3 game_data_packager/*.py game_data_packager/*/*.py || :
+ LC_ALL=C GDP_UNINSTALLED=1 PYTHONPATH=. python3 -m game_data_packager.check_syntax
+ LC_ALL=C pyflakes3 game_data_packager/*.py game_data_packager/*/*.py || :
# Requires additional setup, so not part of "make check"
manual-check:
diff --git a/game_data_packager/__init__.py b/game_data_packager/__init__.py
index e30132a..d49273a 100644
--- a/game_data_packager/__init__.py
+++ b/game_data_packager/__init__.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2014-2015 Simon McVittie <smcv at debian.org>
# Copyright © 2015 Alexandre Detiste <alexandre at detiste.be>
diff --git a/game_data_packager/__main__.py b/game_data_packager/__main__.py
index 824739c..881fe7e 100644
--- a/game_data_packager/__main__.py
+++ b/game_data_packager/__main__.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2014 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/check_syntax.py b/game_data_packager/check_syntax.py
index 969826e..e28a707 100644
--- a/game_data_packager/check_syntax.py
+++ b/game_data_packager/check_syntax.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2014 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/config.py b/game_data_packager/config.py
index d8a1e20..628846c 100644
--- a/game_data_packager/config.py
+++ b/game_data_packager/config.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2014-2015 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/games/__init__.py b/game_data_packager/games/__init__.py
index e69de29..4652741 100644
--- a/game_data_packager/games/__init__.py
+++ b/game_data_packager/games/__init__.py
@@ -0,0 +1 @@
+# encoding=utf-8
diff --git a/game_data_packager/games/doom_common.py b/game_data_packager/games/doom_common.py
index 8ecf8d2..de84c28 100644
--- a/game_data_packager/games/doom_common.py
+++ b/game_data_packager/games/doom_common.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2015 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/games/lgeneral.py b/game_data_packager/games/lgeneral.py
index 87bc74e..954c805 100644
--- a/game_data_packager/games/lgeneral.py
+++ b/game_data_packager/games/lgeneral.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2015 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/games/quake.py b/game_data_packager/games/quake.py
index 85b9383..87a3165 100644
--- a/game_data_packager/games/quake.py
+++ b/game_data_packager/games/quake.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2015 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/games/quake2.py b/game_data_packager/games/quake2.py
index dc449c0..5900ace 100644
--- a/game_data_packager/games/quake2.py
+++ b/game_data_packager/games/quake2.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2015 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/games/rott.py b/game_data_packager/games/rott.py
index 7fd23ea..68617b2 100644
--- a/game_data_packager/games/rott.py
+++ b/game_data_packager/games/rott.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2014 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/games/tyrian.py b/game_data_packager/games/tyrian.py
index 3f6dd0c..e053534 100644
--- a/game_data_packager/games/tyrian.py
+++ b/game_data_packager/games/tyrian.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2014 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/games/wolf3d.py b/game_data_packager/games/wolf3d.py
index 9f8e5fb..863a976 100644
--- a/game_data_packager/games/wolf3d.py
+++ b/game_data_packager/games/wolf3d.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2014 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/make_template.py b/game_data_packager/make_template.py
index 0ac5783..f7de26e 100644
--- a/game_data_packager/make_template.py
+++ b/game_data_packager/make_template.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2014 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/paths.py b/game_data_packager/paths.py
index 6affc0f..0cba549 100644
--- a/game_data_packager/paths.py
+++ b/game_data_packager/paths.py
@@ -1,3 +1,5 @@
+# encoding=utf-8
+
import os
if os.environ.get('GDP_UNINSTALLED'):
diff --git a/game_data_packager/util.py b/game_data_packager/util.py
index e2fd42f..634fe55 100644
--- a/game_data_packager/util.py
+++ b/game_data_packager/util.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-# vim:set fenc=utf-8:
+# encoding=utf-8
#
# Copyright © 2014 Simon McVittie <smcv at debian.org>
#
diff --git a/game_data_packager/version.py b/game_data_packager/version.py
index 252b942..50d4157 100644
--- a/game_data_packager/version.py
+++ b/game_data_packager/version.py
@@ -1,3 +1,5 @@
+# encoding=utf-8
+
# This version of this file is only used when run uninstalled. It is replaced
# with a generated version during installation.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/game-data-packager.git
More information about the Pkg-games-commits
mailing list