diff --git a/color.py b/color.py index 0218aab80..5b3a282da 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 eb3527f0f..8c5e24616 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 7980f2b43..b761eb572 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 f2a7c4e44..5bfe3a666 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 0696df505..315d752dd 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 b1e9e1729..1807b55e4 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 aac08855d..ca1282a36 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 e0a85d7a3..3187783a9 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 f49f7be6f..b47e181ce 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 be5e3131d..531400c53 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 23b4fb74a..962863019 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 0521c0c7a..221baf3c5 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 8af25d211..77e8fdf5d 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 7ab2bf047..31e00c178 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 0dd5d1a83..643169598 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 e4558e0a3..ae2bf6f31 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 5b348d91f..f6082408d 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 c4c978603..69c14a895 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 84efb4ded..273410388 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 f1c2a839c..319262bd1 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 fa1dff674..fb60d7dea 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 cbbca1067..51ac48333 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 1f7dffdc6..43215f91a 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 f233f690e..1f3abd86b 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 a1e823cd5..cae776a72 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 dba70ffd0..f746bc238 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 6fb16f16a..9454ef6c9 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 4d8cd8c24..e5214b8e0 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 2726eaec6..df7b25870 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 1157355d6..a588a78e6 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 67a225e59..90c12443f 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 2fff3acc8..be5a8f2ae 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 632d1a334..6c8b1ddc3 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 ca51c5f7e..961b1956e 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 4a5228ba3..07fa323ae 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 eed8cf202..08b58a6cf 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 39c571a46..dc8b8c9d7 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 747969705..9464091fc 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 d12e08d02..a8a09b64a 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 e164859ff..675b98348 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 9d3542686..aeb495133 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 c3ec303e8..0c60d78c1 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 773f22d4b..3939c45b8 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 ec7337aaa..2e92584e1 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 acb9d7f03..e7e5b1bf1 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 01b7fd8c7..8b48bcfb8 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 3d4b99702..8773b0b9a 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 fb32e38a1..d20641b9c 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 db42a6849..db5145540 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 ca4a283a8..bbb84710c 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");