[damned-lies] Add utf-8 header to all python files
- From: Gil Forcada Codinachs <gforcada src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Add utf-8 header to all python files
- Date: Sun, 14 Oct 2012 17:33:02 +0000 (UTC)
commit 882ad798eb6e770ad3d4e271f55a6ba2d765d353
Author: Gil Forcada <gforcada gnome org>
Date: Tue Jun 26 10:24:04 2012 +0200
Add utf-8 header to all python files
common/migrations/0001_openid_migration.py | 2 +-
common/models.py | 1 +
feeds/urls.py | 1 +
languages/admin.py | 1 +
languages/management/commands/load-plurals.py | 1 +
languages/migrations/0001_initial.py | 2 +-
languages/models.py | 1 +
languages/urls.py | 1 +
manage.py | 1 +
people/admin.py | 1 +
people/forms.py | 1 +
people/migrations/0001_initial.py | 1 -
people/urls.py | 1 +
settings.py | 1 +
stats/doap.py | 1 +
stats/forms.py | 1 +
stats/management/commands/archive-release.py | 1 +
stats/management/commands/compile-trans.py | 1 +
stats/management/commands/migrate-to-git.py | 1 +
stats/management/commands/run-maintenance.py | 1 +
stats/management/commands/update-from-doap.py | 1 +
stats/management/commands/update-stats.py | 1 +
stats/management/commands/update-trans.py | 1 +
stats/migrations/0001_initial.py | 1 -
stats/migrations/0002_add_release_weight.py | 1 -
stats/migrations/0003_add_branch_weight.py | 1 -
stats/migrations/0004_add_file_hashes.py | 2 +-
stats/migrations/0005_add_pofile.py | 2 +-
stats/migrations/0006_migrate_stats.py | 2 +-
stats/migrations/0007_add_domain_filter.py | 2 +-
stats/migrations/0008_add_ext_platform.py | 2 +-
stats/migrations/0009_add_figure_field.py | 2 +-
stats/migrations/0010_add_word_statistics.py | 2 +-
stats/signals.py | 1 +
stats/tests/fixture_factory.py | 1 +
teams/admin.py | 1 +
teams/forms.py | 1 +
teams/migrations/0001_initial.py | 1 -
teams/migrations/0002_workflow_and_pres.py | 1 -
.../0003_auto__add_field_role_is_active.py | 2 +-
teams/urls.py | 1 +
urls.py | 1 +
vertimus/migrations/0001_initial.py | 1 -
vertimus/migrations/0002_add_merged_file.py | 2 +-
vertimus/migrations/0003_populate_merged_file.py | 2 +-
vertimus/urls.py | 1 +
46 files changed, 39 insertions(+), 19 deletions(-)
---
diff --git a/common/migrations/0001_openid_migration.py b/common/migrations/0001_openid_migration.py
index 37eaff0..dce834a 100644
--- a/common/migrations/0001_openid_migration.py
+++ b/common/migrations/0001_openid_migration.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.v2 import DataMigration
from django.db.utils import IntegrityError
diff --git a/common/models.py b/common/models.py
index 864a180..8c3750f 100644
--- a/common/models.py
+++ b/common/models.py
@@ -1 +1,2 @@
+# -*- coding: utf-8 -*-
# This empty file is necessary to run the tests
diff --git a/feeds/urls.py b/feeds/urls.py
index 4a11f6b..3343e2a 100644
--- a/feeds/urls.py
+++ b/feeds/urls.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url
from vertimus.feeds import LatestActionsByLanguage, LatestActionsByTeam
diff --git a/languages/admin.py b/languages/admin.py
index 1214e94..0b20da6 100644
--- a/languages/admin.py
+++ b/languages/admin.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.contrib import admin
from languages.models import Language
diff --git a/languages/management/commands/load-plurals.py b/languages/management/commands/load-plurals.py
index 0e6ff00..9d0fed1 100644
--- a/languages/management/commands/load-plurals.py
+++ b/languages/management/commands/load-plurals.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from languages.models import Language
diff --git a/languages/migrations/0001_initial.py b/languages/migrations/0001_initial.py
index f124dcd..7f2cfcc 100644
--- a/languages/migrations/0001_initial.py
+++ b/languages/migrations/0001_initial.py
@@ -1,4 +1,4 @@
-
+# -*- coding: utf-8 -*-
from south.db import db
from languages.models import *
diff --git a/languages/models.py b/languages/models.py
index c57fa93..8926f09 100644
--- a/languages/models.py
+++ b/languages/models.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.db import models
from django.db.models import Q
from django.utils.translation import ugettext as _
diff --git a/languages/urls.py b/languages/urls.py
index 8df4819..ab636b4 100644
--- a/languages/urls.py
+++ b/languages/urls.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('',
diff --git a/manage.py b/manage.py
index 5e78ea9..d7797f3 100755
--- a/manage.py
+++ b/manage.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
diff --git a/people/admin.py b/people/admin.py
index 659182a..801863b 100644
--- a/people/admin.py
+++ b/people/admin.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
diff --git a/people/forms.py b/people/forms.py
index eeca727..8d0085e 100644
--- a/people/forms.py
+++ b/people/forms.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import hashlib, random
from django import forms
diff --git a/people/migrations/0001_initial.py b/people/migrations/0001_initial.py
index d8962fb..3c8b1c0 100644
--- a/people/migrations/0001_initial.py
+++ b/people/migrations/0001_initial.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-
from south.db import db
from people.models import *
diff --git a/people/urls.py b/people/urls.py
index 72a4a6b..5dbb77a 100644
--- a/people/urls.py
+++ b/people/urls.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.contrib.auth.decorators import login_required
diff --git a/settings.py b/settings.py
index b3a25f2..fa7b6e6 100644
--- a/settings.py
+++ b/settings.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
# Django settings for djamnedlies project.
import os
diff --git a/stats/doap.py b/stats/doap.py
index 427c84a..4280ea7 100644
--- a/stats/doap.py
+++ b/stats/doap.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import os
import re
from xml.etree.ElementTree import parse
diff --git a/stats/forms.py b/stats/forms.py
index 8fb7bd4..713ab19 100644
--- a/stats/forms.py
+++ b/stats/forms.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django import forms
from stats.models import CATEGORY_CHOICES, Release
diff --git a/stats/management/commands/archive-release.py b/stats/management/commands/archive-release.py
index ad36657..45ce053 100644
--- a/stats/management/commands/archive-release.py
+++ b/stats/management/commands/archive-release.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import csv
import sys
import StringIO
diff --git a/stats/management/commands/compile-trans.py b/stats/management/commands/compile-trans.py
index 8a4ad9e..44daa5d 100644
--- a/stats/management/commands/compile-trans.py
+++ b/stats/management/commands/compile-trans.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.core.management.base import NoArgsCommand
from django.core.management.commands import compilemessages
import os
diff --git a/stats/management/commands/migrate-to-git.py b/stats/management/commands/migrate-to-git.py
index ece9b52..1b6d928 100644
--- a/stats/management/commands/migrate-to-git.py
+++ b/stats/management/commands/migrate-to-git.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import shutil
from django.core.management.base import BaseCommand
from stats.models import Module, Branch
diff --git a/stats/management/commands/run-maintenance.py b/stats/management/commands/run-maintenance.py
index 994a47b..eee498f 100644
--- a/stats/management/commands/run-maintenance.py
+++ b/stats/management/commands/run-maintenance.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from people.models import Person
diff --git a/stats/management/commands/update-from-doap.py b/stats/management/commands/update-from-doap.py
index c3e84c0..10f1c68 100644
--- a/stats/management/commands/update-from-doap.py
+++ b/stats/management/commands/update-from-doap.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import sys
from django.core.management.base import BaseCommand
diff --git a/stats/management/commands/update-stats.py b/stats/management/commands/update-stats.py
index a2c5501..1321a14 100644
--- a/stats/management/commands/update-stats.py
+++ b/stats/management/commands/update-stats.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import sys, traceback
from optparse import make_option
from django.core.management.base import BaseCommand
diff --git a/stats/management/commands/update-trans.py b/stats/management/commands/update-trans.py
index c98178b..3c97bdc 100644
--- a/stats/management/commands/update-trans.py
+++ b/stats/management/commands/update-trans.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import os
import re
import shutil
diff --git a/stats/migrations/0001_initial.py b/stats/migrations/0001_initial.py
index fa56203..cb3bfef 100644
--- a/stats/migrations/0001_initial.py
+++ b/stats/migrations/0001_initial.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-
from south.db import db
from django.db import models
from stats.models import *
diff --git a/stats/migrations/0002_add_release_weight.py b/stats/migrations/0002_add_release_weight.py
index 369ee53..f48a63b 100644
--- a/stats/migrations/0002_add_release_weight.py
+++ b/stats/migrations/0002_add_release_weight.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-
from south.db import db
from stats.models import *
diff --git a/stats/migrations/0003_add_branch_weight.py b/stats/migrations/0003_add_branch_weight.py
index 179316d..e555eb5 100644
--- a/stats/migrations/0003_add_branch_weight.py
+++ b/stats/migrations/0003_add_branch_weight.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-
from south.db import db
from stats.models import *
diff --git a/stats/migrations/0004_add_file_hashes.py b/stats/migrations/0004_add_file_hashes.py
index abfcdbf..e31a130 100644
--- a/stats/migrations/0004_add_file_hashes.py
+++ b/stats/migrations/0004_add_file_hashes.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
diff --git a/stats/migrations/0005_add_pofile.py b/stats/migrations/0005_add_pofile.py
index ce1ac2c..9efb1de 100644
--- a/stats/migrations/0005_add_pofile.py
+++ b/stats/migrations/0005_add_pofile.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
diff --git a/stats/migrations/0006_migrate_stats.py b/stats/migrations/0006_migrate_stats.py
index 0ee4254..2611b48 100644
--- a/stats/migrations/0006_migrate_stats.py
+++ b/stats/migrations/0006_migrate_stats.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.v2 import DataMigration
class Migration(DataMigration):
diff --git a/stats/migrations/0007_add_domain_filter.py b/stats/migrations/0007_add_domain_filter.py
index 292d8bc..bbbcf21 100644
--- a/stats/migrations/0007_add_domain_filter.py
+++ b/stats/migrations/0007_add_domain_filter.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
diff --git a/stats/migrations/0008_add_ext_platform.py b/stats/migrations/0008_add_ext_platform.py
index df45fc3..cd45acc 100644
--- a/stats/migrations/0008_add_ext_platform.py
+++ b/stats/migrations/0008_add_ext_platform.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
diff --git a/stats/migrations/0009_add_figure_field.py b/stats/migrations/0009_add_figure_field.py
index d19eefb..c328b1f 100644
--- a/stats/migrations/0009_add_figure_field.py
+++ b/stats/migrations/0009_add_figure_field.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
diff --git a/stats/migrations/0010_add_word_statistics.py b/stats/migrations/0010_add_word_statistics.py
index 097d6ec..e3b76a3 100644
--- a/stats/migrations/0010_add_word_statistics.py
+++ b/stats/migrations/0010_add_word_statistics.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
diff --git a/stats/signals.py b/stats/signals.py
index d59285f..59fca64 100644
--- a/stats/signals.py
+++ b/stats/signals.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import django.dispatch
pot_has_changed = django.dispatch.Signal(providing_args=["potfile", "branch", "domain"])
diff --git a/stats/tests/fixture_factory.py b/stats/tests/fixture_factory.py
index 7967cd6..4dff4e5 100644
--- a/stats/tests/fixture_factory.py
+++ b/stats/tests/fixture_factory.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from tempfile import NamedTemporaryFile
from django.core.management import call_command
diff --git a/teams/admin.py b/teams/admin.py
index 5bf996f..482118f 100644
--- a/teams/admin.py
+++ b/teams/admin.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.contrib import admin
from teams.models import Team, Role
from languages.models import Language
diff --git a/teams/forms.py b/teams/forms.py
index 8037791..27ceec2 100644
--- a/teams/forms.py
+++ b/teams/forms.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django import forms
from django.utils.translation import ugettext as _
diff --git a/teams/migrations/0001_initial.py b/teams/migrations/0001_initial.py
index 90bb30b..cd95a9f 100644
--- a/teams/migrations/0001_initial.py
+++ b/teams/migrations/0001_initial.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-
from south.db import db
from teams.models import *
diff --git a/teams/migrations/0002_workflow_and_pres.py b/teams/migrations/0002_workflow_and_pres.py
index 0ab1ca2..f5871e9 100644
--- a/teams/migrations/0002_workflow_and_pres.py
+++ b/teams/migrations/0002_workflow_and_pres.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-
from south.db import db
from teams.models import *
diff --git a/teams/migrations/0003_auto__add_field_role_is_active.py b/teams/migrations/0003_auto__add_field_role_is_active.py
index 7e56c47..de70e3c 100644
--- a/teams/migrations/0003_auto__add_field_role_is_active.py
+++ b/teams/migrations/0003_auto__add_field_role_is_active.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
diff --git a/teams/urls.py b/teams/urls.py
index 3c8a287..3a4b1d2 100644
--- a/teams/urls.py
+++ b/teams/urls.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('teams.views',
diff --git a/urls.py b/urls.py
index b84dcfc..b6b2b31 100644
--- a/urls.py
+++ b/urls.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
diff --git a/vertimus/migrations/0001_initial.py b/vertimus/migrations/0001_initial.py
index 69b4af7..9985529 100644
--- a/vertimus/migrations/0001_initial.py
+++ b/vertimus/migrations/0001_initial.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
-
from south.db import db
from vertimus.models import *
diff --git a/vertimus/migrations/0002_add_merged_file.py b/vertimus/migrations/0002_add_merged_file.py
index a4f3009..87a7564 100644
--- a/vertimus/migrations/0002_add_merged_file.py
+++ b/vertimus/migrations/0002_add_merged_file.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
diff --git a/vertimus/migrations/0003_populate_merged_file.py b/vertimus/migrations/0003_populate_merged_file.py
index 556cec9..6bfb4dd 100644
--- a/vertimus/migrations/0003_populate_merged_file.py
+++ b/vertimus/migrations/0003_populate_merged_file.py
@@ -1,4 +1,4 @@
-# encoding: utf-8
+# -*- coding: utf-8 -*-
from south.v2 import DataMigration
from vertimus.models import Action
diff --git a/vertimus/urls.py b/vertimus/urls.py
index 766ecee..f3f4642 100644
--- a/vertimus/urls.py
+++ b/vertimus/urls.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, url
urlpatterns = patterns('vertimus.views',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]