diff --git a/color.py b/color.py index 0218aab8..5b3a282d 100644 --- a/color.py +++ b/color.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/command.py b/command.py index eb3527f0..8c5e2461 100644 --- a/command.py +++ b/command.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/editor.py b/editor.py index 7980f2b4..b761eb57 100644 --- a/editor.py +++ b/editor.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/error.py b/error.py index f2a7c4e4..5bfe3a66 100644 --- a/error.py +++ b/error.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/event_log.py b/event_log.py index 0696df50..315d752d 100644 --- a/event_log.py +++ b/event_log.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2017 The Android Open Source Project # diff --git a/git_command.py b/git_command.py index b1e9e172..1807b55e 100644 --- a/git_command.py +++ b/git_command.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/git_config.py b/git_config.py index aac08855..ca1282a3 100644 --- a/git_config.py +++ b/git_config.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/git_refs.py b/git_refs.py index e0a85d7a..3187783a 100644 --- a/git_refs.py +++ b/git_refs.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2009 The Android Open Source Project # diff --git a/gitc_utils.py b/gitc_utils.py index f49f7be6..b47e181c 100644 --- a/gitc_utils.py +++ b/gitc_utils.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2015 The Android Open Source Project # diff --git a/main.py b/main.py index be5e3131..531400c5 100755 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/manifest_xml.py b/manifest_xml.py index 23b4fb74..96286301 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/pager.py b/pager.py index 0521c0c7..221baf3c 100755 --- a/pager.py +++ b/pager.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/platform_utils.py b/platform_utils.py index 8af25d21..77e8fdf5 100644 --- a/platform_utils.py +++ b/platform_utils.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2016 The Android Open Source Project # diff --git a/platform_utils_win32.py b/platform_utils_win32.py index 7ab2bf04..31e00c17 100644 --- a/platform_utils_win32.py +++ b/platform_utils_win32.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2016 The Android Open Source Project # diff --git a/progress.py b/progress.py index 0dd5d1a8..64316959 100644 --- a/progress.py +++ b/progress.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2009 The Android Open Source Project # diff --git a/project.py b/project.py index e4558e0a..ae2bf6f3 100755 --- a/project.py +++ b/project.py @@ -1,3 +1,5 @@ +# -*- coding:utf-8 -*- +# # Copyright (C) 2008 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/pyversion.py b/pyversion.py index 5b348d91..f6082408 100644 --- a/pyversion.py +++ b/pyversion.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2013 The Android Open Source Project # diff --git a/repo b/repo index c4c97860..69c14a89 100755 --- a/repo +++ b/repo @@ -1,4 +1,5 @@ #!/usr/bin/env python +# -*- coding:utf-8 -*- # repo default configuration # diff --git a/subcmds/__init__.py b/subcmds/__init__.py index 84efb4de..27341038 100644 --- a/subcmds/__init__.py +++ b/subcmds/__init__.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/abandon.py b/subcmds/abandon.py index f1c2a839..319262bd 100644 --- a/subcmds/abandon.py +++ b/subcmds/abandon.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/branches.py b/subcmds/branches.py index fa1dff67..fb60d7de 100644 --- a/subcmds/branches.py +++ b/subcmds/branches.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2009 The Android Open Source Project # diff --git a/subcmds/checkout.py b/subcmds/checkout.py index cbbca106..51ac4833 100644 --- a/subcmds/checkout.py +++ b/subcmds/checkout.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2009 The Android Open Source Project # diff --git a/subcmds/cherry_pick.py b/subcmds/cherry_pick.py index 1f7dffdc..43215f91 100644 --- a/subcmds/cherry_pick.py +++ b/subcmds/cherry_pick.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2010 The Android Open Source Project # diff --git a/subcmds/diff.py b/subcmds/diff.py index f233f690..1f3abd86 100644 --- a/subcmds/diff.py +++ b/subcmds/diff.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/diffmanifests.py b/subcmds/diffmanifests.py index a1e823cd..cae776a7 100644 --- a/subcmds/diffmanifests.py +++ b/subcmds/diffmanifests.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2014 The Android Open Source Project # diff --git a/subcmds/download.py b/subcmds/download.py index dba70ffd..f746bc23 100755 --- a/subcmds/download.py +++ b/subcmds/download.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/forall.py b/subcmds/forall.py index 6fb16f16..9454ef6c 100644 --- a/subcmds/forall.py +++ b/subcmds/forall.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/gitc_delete.py b/subcmds/gitc_delete.py index 4d8cd8c2..e5214b8e 100644 --- a/subcmds/gitc_delete.py +++ b/subcmds/gitc_delete.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2015 The Android Open Source Project # diff --git a/subcmds/gitc_init.py b/subcmds/gitc_init.py index 2726eaec..df7b2587 100644 --- a/subcmds/gitc_init.py +++ b/subcmds/gitc_init.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2015 The Android Open Source Project # diff --git a/subcmds/grep.py b/subcmds/grep.py index 1157355d..a588a78e 100644 --- a/subcmds/grep.py +++ b/subcmds/grep.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2009 The Android Open Source Project # diff --git a/subcmds/help.py b/subcmds/help.py index 67a225e5..90c12443 100644 --- a/subcmds/help.py +++ b/subcmds/help.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/info.py b/subcmds/info.py index 2fff3acc..be5a8f2a 100644 --- a/subcmds/info.py +++ b/subcmds/info.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2012 The Android Open Source Project # diff --git a/subcmds/init.py b/subcmds/init.py index 632d1a33..6c8b1ddc 100644 --- a/subcmds/init.py +++ b/subcmds/init.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/list.py b/subcmds/list.py index ca51c5f7..961b1956 100644 --- a/subcmds/list.py +++ b/subcmds/list.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2011 The Android Open Source Project # diff --git a/subcmds/manifest.py b/subcmds/manifest.py index 4a5228ba..07fa323a 100644 --- a/subcmds/manifest.py +++ b/subcmds/manifest.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2009 The Android Open Source Project # diff --git a/subcmds/overview.py b/subcmds/overview.py index eed8cf20..08b58a6c 100644 --- a/subcmds/overview.py +++ b/subcmds/overview.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2012 The Android Open Source Project # diff --git a/subcmds/prune.py b/subcmds/prune.py index 39c571a4..dc8b8c9d 100644 --- a/subcmds/prune.py +++ b/subcmds/prune.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/rebase.py b/subcmds/rebase.py index 74796970..9464091f 100644 --- a/subcmds/rebase.py +++ b/subcmds/rebase.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2010 The Android Open Source Project # diff --git a/subcmds/selfupdate.py b/subcmds/selfupdate.py index d12e08d0..a8a09b64 100644 --- a/subcmds/selfupdate.py +++ b/subcmds/selfupdate.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2009 The Android Open Source Project # diff --git a/subcmds/smartsync.py b/subcmds/smartsync.py index e164859f..675b9834 100644 --- a/subcmds/smartsync.py +++ b/subcmds/smartsync.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2010 The Android Open Source Project # diff --git a/subcmds/stage.py b/subcmds/stage.py index 9d354268..aeb49513 100644 --- a/subcmds/stage.py +++ b/subcmds/stage.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/start.py b/subcmds/start.py index c3ec303e..0c60d78c 100644 --- a/subcmds/start.py +++ b/subcmds/start.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/status.py b/subcmds/status.py index 773f22d4..3939c45b 100644 --- a/subcmds/status.py +++ b/subcmds/status.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/sync.py b/subcmds/sync.py index ec7337aa..2e92584e 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/upload.py b/subcmds/upload.py index acb9d7f0..e7e5b1bf 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/subcmds/version.py b/subcmds/version.py index 01b7fd8c..8b48bcfb 100644 --- a/subcmds/version.py +++ b/subcmds/version.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2009 The Android Open Source Project # diff --git a/tests/test_git_config.py b/tests/test_git_config.py index 3d4b9970..8773b0b9 100644 --- a/tests/test_git_config.py +++ b/tests/test_git_config.py @@ -1,3 +1,5 @@ +# -*- coding:utf-8 -*- + import os import unittest diff --git a/tests/test_wrapper.py b/tests/test_wrapper.py index fb32e38a..d20641b9 100644 --- a/tests/test_wrapper.py +++ b/tests/test_wrapper.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2015 The Android Open Source Project # diff --git a/trace.py b/trace.py index db42a684..db514554 100644 --- a/trace.py +++ b/trace.py @@ -1,3 +1,4 @@ +# -*- coding:utf-8 -*- # # Copyright (C) 2008 The Android Open Source Project # diff --git a/wrapper.py b/wrapper.py index ca4a283a..bbb84710 100644 --- a/wrapper.py +++ b/wrapper.py @@ -1,3 +1,5 @@ +# -*- coding:utf-8 -*- +# # Copyright (C) 2014 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License");