diff --git a/core-modules/000QubesVm.py b/core-modules/000QubesVm.py index 074f6b76..f7eb27c0 100644 --- a/core-modules/000QubesVm.py +++ b/core-modules/000QubesVm.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core-modules/003QubesTemplateVm.py b/core-modules/003QubesTemplateVm.py index 180f913c..651c41c1 100644 --- a/core-modules/003QubesTemplateVm.py +++ b/core-modules/003QubesTemplateVm.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core-modules/005QubesNetVm.py b/core-modules/005QubesNetVm.py index 69af2a86..067f9274 100644 --- a/core-modules/005QubesNetVm.py +++ b/core-modules/005QubesNetVm.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core-modules/006QubesAdminVm.py b/core-modules/006QubesAdminVm.py index 733c3740..a463160d 100644 --- a/core-modules/006QubesAdminVm.py +++ b/core-modules/006QubesAdminVm.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core-modules/006QubesProxyVm.py b/core-modules/006QubesProxyVm.py index e81d09d5..cbb4c9ec 100644 --- a/core-modules/006QubesProxyVm.py +++ b/core-modules/006QubesProxyVm.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core-modules/01QubesAppVm.py b/core-modules/01QubesAppVm.py index 668dd6b0..dd119a0e 100644 --- a/core-modules/01QubesAppVm.py +++ b/core-modules/01QubesAppVm.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core-modules/01QubesDisposableVm.py b/core-modules/01QubesDisposableVm.py index 8963c672..c160c434 100644 --- a/core-modules/01QubesDisposableVm.py +++ b/core-modules/01QubesDisposableVm.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core-modules/01QubesHVm.py b/core-modules/01QubesHVm.py index 21fc37b8..24d1be68 100644 --- a/core-modules/01QubesHVm.py +++ b/core-modules/01QubesHVm.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core-modules/02QubesTemplateHVm.py b/core-modules/02QubesTemplateHVm.py index cb53ac0d..b4a07460 100644 --- a/core-modules/02QubesTemplateHVm.py +++ b/core-modules/02QubesTemplateHVm.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core/guihelpers.py b/core/guihelpers.py index d1ae103d..b6b29801 100644 --- a/core/guihelpers.py +++ b/core/guihelpers.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core/qubes.py b/core/qubes.py index 375d666d..bcf4f41e 100755 --- a/core/qubes.py +++ b/core/qubes.py @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/core/qubesutils.py b/core/qubesutils.py index a1ba0ffe..ea55330b 100644 --- a/core/qubesutils.py +++ b/core/qubesutils.py @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qmemman/qmemman.py b/qmemman/qmemman.py index 2ddf25b4..0121639d 100755 --- a/qmemman/qmemman.py +++ b/qmemman/qmemman.py @@ -1,3 +1,26 @@ +#!/usr/bin/python2 +# -*- coding: utf-8 -*- +# +# The Qubes OS Project, http://www.qubes-os.org +# +# Copyright (C) 2010 Rafal Wojtczuk +# Copyright (C) 2013 Marek Marczykowski +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# import xen.lowlevel.xc import xen.lowlevel.xs import string diff --git a/qmemman/qmemman_algo.py b/qmemman/qmemman_algo.py index 3f807c53..e27f8827 100755 --- a/qmemman/qmemman_algo.py +++ b/qmemman/qmemman_algo.py @@ -1,3 +1,26 @@ +#!/usr/bin/python2 +# -*- coding: utf-8 -*- +# +# The Qubes OS Project, http://www.qubes-os.org +# +# Copyright (C) 2010 Rafal Wojtczuk +# Copyright (C) 2013 Marek Marczykowski +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# import string # This are only defaults - can be overriden by QMemmanServer with values from diff --git a/qmemman/qmemman_client.py b/qmemman/qmemman_client.py index e1d5234c..b0539921 100755 --- a/qmemman/qmemman_client.py +++ b/qmemman/qmemman_client.py @@ -1,3 +1,25 @@ +#!/usr/bin/python2 +# -*- coding: utf-8 -*- +# +# The Qubes OS Project, http://www.qubes-os.org +# +# Copyright (C) 2010 Rafal Wojtczuk +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# import socket import fcntl class QMemmanClient: diff --git a/qmemman/qmemman_server.py b/qmemman/qmemman_server.py index a744340b..53dfaaa8 100755 --- a/qmemman/qmemman_server.py +++ b/qmemman/qmemman_server.py @@ -1,4 +1,25 @@ -#!/usr/bin/python +#!/usr/bin/python2 +# -*- coding: utf-8 -*- +# +# The Qubes OS Project, http://www.qubes-os.org +# +# Copyright (C) 2010 Rafal Wojtczuk +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# import SocketServer import thread import time diff --git a/qmemman/server.py b/qmemman/server.py index 8a39eb5d..a5447425 100755 --- a/qmemman/server.py +++ b/qmemman/server.py @@ -1,4 +1,23 @@ -#!/usr/bin/python +#!/usr/bin/python2 +# -*- coding: utf-8 -*- +# +# The Qubes OS Project, http://www.qubes-os.org +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# from qubes.qmemman_server import QMemmanServer QMemmanServer.main() diff --git a/qvm-tools/qubes-prefs b/qvm-tools/qubes-prefs index 2c57562a..c2dc108b 100755 --- a/qvm-tools/qubes-prefs +++ b/qvm-tools/qubes-prefs @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qubes-set-updates b/qvm-tools/qubes-set-updates index 500e71c1..4bb2d455 100755 --- a/qvm-tools/qubes-set-updates +++ b/qvm-tools/qubes-set-updates @@ -1,4 +1,25 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- +# +# The Qubes OS Project, http://www.qubes-os.org +# +# Copyright (C) 2014 Marek Marczykowski-Górecki +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# import os import sys @@ -44,4 +65,4 @@ def main(): qvm_collection.unlock_db() if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/qvm-tools/qvm-add-appvm b/qvm-tools/qvm-add-appvm index 79682891..3e080b3f 100755 --- a/qvm-tools/qvm-add-appvm +++ b/qvm-tools/qvm-add-appvm @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-add-template b/qvm-tools/qvm-add-template index f5a8cf39..2e421f2d 100755 --- a/qvm-tools/qvm-add-template +++ b/qvm-tools/qvm-add-template @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-backup b/qvm-tools/qvm-backup index f3e15c9b..723b2b00 100755 --- a/qvm-tools/qvm-backup +++ b/qvm-tools/qvm-backup @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-backup-restore b/qvm-tools/qvm-backup-restore index 0b6169f4..9713c900 100755 --- a/qvm-tools/qvm-backup-restore +++ b/qvm-tools/qvm-backup-restore @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-block b/qvm-tools/qvm-block index 875f1fec..1dcbc2d5 100755 --- a/qvm-tools/qvm-block +++ b/qvm-tools/qvm-block @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-check b/qvm-tools/qvm-check index a2e223ab..671aeda2 100755 --- a/qvm-tools/qvm-check +++ b/qvm-tools/qvm-check @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-clone b/qvm-tools/qvm-clone index 3f04fe3b..ae0c9d98 100755 --- a/qvm-tools/qvm-clone +++ b/qvm-tools/qvm-clone @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-create b/qvm-tools/qvm-create index f51cccee..26410900 100755 --- a/qvm-tools/qvm-create +++ b/qvm-tools/qvm-create @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-firewall b/qvm-tools/qvm-firewall index 12577b1e..64be8fe8 100755 --- a/qvm-tools/qvm-firewall +++ b/qvm-tools/qvm-firewall @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-grow-private b/qvm-tools/qvm-grow-private index c052239d..9158563e 100755 --- a/qvm-tools/qvm-grow-private +++ b/qvm-tools/qvm-grow-private @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-grow-root b/qvm-tools/qvm-grow-root index 36baa7c9..93c55bb2 100755 --- a/qvm-tools/qvm-grow-root +++ b/qvm-tools/qvm-grow-root @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-init-storage b/qvm-tools/qvm-init-storage index 2c21e078..247e471d 100755 --- a/qvm-tools/qvm-init-storage +++ b/qvm-tools/qvm-init-storage @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-kill b/qvm-tools/qvm-kill index 01f58f99..8d364ca3 100755 --- a/qvm-tools/qvm-kill +++ b/qvm-tools/qvm-kill @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-ls b/qvm-tools/qvm-ls index c5bf30d3..42e6f4c7 100755 --- a/qvm-tools/qvm-ls +++ b/qvm-tools/qvm-ls @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-pci b/qvm-tools/qvm-pci index a9f19583..e8392be5 100755 --- a/qvm-tools/qvm-pci +++ b/qvm-tools/qvm-pci @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-prefs b/qvm-tools/qvm-prefs index 992ab6bc..f00cd704 100755 --- a/qvm-tools/qvm-prefs +++ b/qvm-tools/qvm-prefs @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-remove b/qvm-tools/qvm-remove index ac695294..fdb92a4c 100755 --- a/qvm-tools/qvm-remove +++ b/qvm-tools/qvm-remove @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-revert-template-changes b/qvm-tools/qvm-revert-template-changes index a973c166..fc2d6261 100755 --- a/qvm-tools/qvm-revert-template-changes +++ b/qvm-tools/qvm-revert-template-changes @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-run b/qvm-tools/qvm-run index 2225f561..223a987e 100755 --- a/qvm-tools/qvm-run +++ b/qvm-tools/qvm-run @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-service b/qvm-tools/qvm-service index 6dbb8a6c..2196d920 100755 --- a/qvm-tools/qvm-service +++ b/qvm-tools/qvm-service @@ -1,4 +1,5 @@ #!/usr/bin/python +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-shutdown b/qvm-tools/qvm-shutdown index 7b85ffe3..f83228e3 100755 --- a/qvm-tools/qvm-shutdown +++ b/qvm-tools/qvm-shutdown @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-start b/qvm-tools/qvm-start index 33478fda..61721911 100755 --- a/qvm-tools/qvm-start +++ b/qvm-tools/qvm-start @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- coding: utf-8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-sync-clock b/qvm-tools/qvm-sync-clock index 62112754..52f1ba76 100755 --- a/qvm-tools/qvm-sync-clock +++ b/qvm-tools/qvm-sync-clock @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-template-commit b/qvm-tools/qvm-template-commit index 4b029edd..37b168b6 100755 --- a/qvm-tools/qvm-template-commit +++ b/qvm-tools/qvm-template-commit @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org # diff --git a/qvm-tools/qvm-usb b/qvm-tools/qvm-usb index b8a83ba6..9badab29 100755 --- a/qvm-tools/qvm-usb +++ b/qvm-tools/qvm-usb @@ -1,4 +1,5 @@ #!/usr/bin/python2 +# -*- encoding: utf8 -*- # # The Qubes OS Project, http://www.qubes-os.org #