[PATCH] Coding deve estar no inicio do arquivo para ser detectado

camponez en gmail.com camponez en gmail.com
Sab Mayo 25 12:41:39 UTC 2013


From: Eduardo Elias Camponez <camponez at gmail.com>

http://www.python.org/dev/peps/pep-0263/

To define a source code encoding, a magic comment must
    be placed into the source files either as first or second
    line in the file, such as:

          # coding=<encoding name>
---
 src/bens.py         | 1 +
 src/contribuinte.py | 1 +
 src/dirs.py         | 1 +
 src/municipios.py   | 1 +
 src/ocupacoes.py    | 1 +
 src/rendimentoPJ.py | 1 +
 6 files changed, 6 insertions(+)

diff --git a/src/bens.py b/src/bens.py
index 7103eae..d70ea33 100644
--- a/src/bens.py
+++ b/src/bens.py
@@ -1,3 +1,4 @@
+# coding=utf-8
 #
 #   Copyright 2013 Thadeu Lima de Souza Cascardo <cascardo at cascardo.info>
 #
diff --git a/src/contribuinte.py b/src/contribuinte.py
index ad3b183..fbb1c45 100644
--- a/src/contribuinte.py
+++ b/src/contribuinte.py
@@ -1,3 +1,4 @@
+# coding=utf-8
 #
 #   Copyright 2013 Thadeu Lima de Souza Cascardo <cascardo at cascardo.info>
 #
diff --git a/src/dirs.py b/src/dirs.py
index 8322099..6b60be0 100644
--- a/src/dirs.py
+++ b/src/dirs.py
@@ -1,3 +1,4 @@
+# coding=utf-8
 #
 #   Copyright 2013 Thadeu Lima de Souza Cascardo <cascardo at cascardo.info>
 #
diff --git a/src/municipios.py b/src/municipios.py
index 559c814..733b8fe 100644
--- a/src/municipios.py
+++ b/src/municipios.py
@@ -1,3 +1,4 @@
+# coding=utf-8
 #
 #   Copyright 2013 Thadeu Lima de Souza Cascardo <cascardo at cascardo.info>
 #
diff --git a/src/ocupacoes.py b/src/ocupacoes.py
index 85fa6da..87b9f32 100644
--- a/src/ocupacoes.py
+++ b/src/ocupacoes.py
@@ -1,3 +1,4 @@
+# coding=utf-8
 #
 #   Copyright 2013 Thadeu Lima de Souza Cascardo <cascardo at cascardo.info>
 #
diff --git a/src/rendimentoPJ.py b/src/rendimentoPJ.py
index 64d5844..2f70e70 100644
--- a/src/rendimentoPJ.py
+++ b/src/rendimentoPJ.py
@@ -1,3 +1,4 @@
+# coding=utf-8
 #
 #   Copyright 2013 Thadeu Lima de Souza Cascardo <cascardo at cascardo.info>
 #
-- 
1.8.1.2



Más información sobre la lista de distribución Softwares-impostos