From 640ca33197ea2c7772278183b3f77701009bb733 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 9 Aug 2020 19:46:07 +0530 Subject: [PATCH] py3ize some shebangs --- recipes/caravan_magazine.recipe | 2 +- recipes/istorias.recipe | 2 +- recipes/lrb.recipe | 2 +- recipes/popscience.recipe | 2 +- recipes/saechsische.recipe | 2 +- recipes/sardinia_post.recipe | 2 +- recipes/spectator_magazine.recipe | 2 +- recipes/tagespost.recipe | 2 +- recipes/theprint.recipe | 2 +- setup/csslint.py | 2 +- setup/hyphenation.py | 2 +- setup/revendor.py | 2 +- src/calibre/db/annotations.py | 2 +- src/calibre/ebooks/oeb/polish/hyphenation.py | 2 +- src/calibre/gui2/actions/browse_annots.py | 2 +- src/calibre/gui2/dialogs/tag_list_editor_table_widget.py | 2 +- src/calibre/gui2/library/annotations.py | 2 +- src/calibre/gui2/palette.py | 2 +- src/calibre/gui2/viewer/config.py | 2 +- src/calibre/gui2/viewer/integration.py | 2 +- src/calibre/gui2/viewer/search.py | 2 +- src/calibre/gui2/viewer/widgets.py | 2 +- src/calibre/utils/hyphenation/dictionaries.py | 2 +- src/calibre/utils/hyphenation/hyphenate.py | 2 +- src/calibre/utils/hyphenation/test_hyphenation.py | 2 +- src/calibre/utils/xml_parse.py | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/recipes/caravan_magazine.recipe b/recipes/caravan_magazine.recipe index 2fd3475bb3..63ee591cf8 100644 --- a/recipes/caravan_magazine.recipe +++ b/recipes/caravan_magazine.recipe @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPLv3 Copyright: 2015, Kovid Goyal diff --git a/recipes/istorias.recipe b/recipes/istorias.recipe index 2af9fe3ce2..ad28db9289 100644 --- a/recipes/istorias.recipe +++ b/recipes/istorias.recipe @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 from __future__ import unicode_literals, division, absolute_import, print_function from calibre.web.feeds.news import AutomaticNewsRecipe diff --git a/recipes/lrb.recipe b/recipes/lrb.recipe index e4d2717a3b..0552f5322f 100644 --- a/recipes/lrb.recipe +++ b/recipes/lrb.recipe @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPLv3 Copyright: 2019, Kovid Goyal from calibre.web.feeds.news import BasicNewsRecipe diff --git a/recipes/popscience.recipe b/recipes/popscience.recipe index a7b5dd079f..c0f631164a 100644 --- a/recipes/popscience.recipe +++ b/recipes/popscience.recipe @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPLv3 Copyright: 2020, Kovid Goyal diff --git a/recipes/saechsische.recipe b/recipes/saechsische.recipe index 0fd7964ed0..33a64d3fb6 100644 --- a/recipes/saechsische.recipe +++ b/recipes/saechsische.recipe @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python ## # Written: March 2020 # Version: 1.0 diff --git a/recipes/sardinia_post.recipe b/recipes/sardinia_post.recipe index bcac7842bc..e93a779f27 100644 --- a/recipes/sardinia_post.recipe +++ b/recipes/sardinia_post.recipe @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 from __future__ import unicode_literals, division, absolute_import, print_function from calibre.web.feeds.news import AutomaticNewsRecipe diff --git a/recipes/spectator_magazine.recipe b/recipes/spectator_magazine.recipe index 014b92151e..bc286f7bf8 100644 --- a/recipes/spectator_magazine.recipe +++ b/recipes/spectator_magazine.recipe @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPLv3 Copyright: 2015, Kovid Goyal diff --git a/recipes/tagespost.recipe b/recipes/tagespost.recipe index 7362a1735c..e4b807080f 100644 --- a/recipes/tagespost.recipe +++ b/recipes/tagespost.recipe @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 from __future__ import unicode_literals, division, absolute_import, print_function __license__ = 'GPL v3' diff --git a/recipes/theprint.recipe b/recipes/theprint.recipe index 58d30c4bf1..7918e03d6a 100644 --- a/recipes/theprint.recipe +++ b/recipes/theprint.recipe @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPLv3 Copyright: 2016, Kovid Goyal diff --git a/setup/csslint.py b/setup/csslint.py index 10c6920339..3b6cc0cef4 100644 --- a/setup/csslint.py +++ b/setup/csslint.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal diff --git a/setup/hyphenation.py b/setup/hyphenation.py index 2f92320731..6e3713ffca 100644 --- a/setup/hyphenation.py +++ b/setup/hyphenation.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai # License: GPLv3 Copyright: 2019, Kovid Goyal from __future__ import absolute_import, division, print_function, unicode_literals diff --git a/setup/revendor.py b/setup/revendor.py index 819a0e64a0..ef65e0d40f 100755 --- a/setup/revendor.py +++ b/setup/revendor.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Eli Schwartz diff --git a/src/calibre/db/annotations.py b/src/calibre/db/annotations.py index e054c49a7d..0be02bccd6 100644 --- a/src/calibre/db/annotations.py +++ b/src/calibre/db/annotations.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal diff --git a/src/calibre/ebooks/oeb/polish/hyphenation.py b/src/calibre/ebooks/oeb/polish/hyphenation.py index 96d2386d63..d12dee6a18 100644 --- a/src/calibre/ebooks/oeb/polish/hyphenation.py +++ b/src/calibre/ebooks/oeb/polish/hyphenation.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal diff --git a/src/calibre/gui2/actions/browse_annots.py b/src/calibre/gui2/actions/browse_annots.py index 5ef3aca4cf..590cfb7690 100644 --- a/src/calibre/gui2/actions/browse_annots.py +++ b/src/calibre/gui2/actions/browse_annots.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal diff --git a/src/calibre/gui2/dialogs/tag_list_editor_table_widget.py b/src/calibre/gui2/dialogs/tag_list_editor_table_widget.py index c357c950e7..5bbcb41112 100644 --- a/src/calibre/gui2/dialogs/tag_list_editor_table_widget.py +++ b/src/calibre/gui2/dialogs/tag_list_editor_table_widget.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPLv3 Copyright: 2008, Kovid Goyal from __future__ import absolute_import, division, print_function, unicode_literals diff --git a/src/calibre/gui2/library/annotations.py b/src/calibre/gui2/library/annotations.py index f63bae7d12..1ae253482e 100644 --- a/src/calibre/gui2/library/annotations.py +++ b/src/calibre/gui2/library/annotations.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal diff --git a/src/calibre/gui2/palette.py b/src/calibre/gui2/palette.py index 24684dfbf8..140bd53251 100644 --- a/src/calibre/gui2/palette.py +++ b/src/calibre/gui2/palette.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal diff --git a/src/calibre/gui2/viewer/config.py b/src/calibre/gui2/viewer/config.py index 5a8ec79f61..12d9e446f6 100644 --- a/src/calibre/gui2/viewer/config.py +++ b/src/calibre/gui2/viewer/config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal diff --git a/src/calibre/gui2/viewer/integration.py b/src/calibre/gui2/viewer/integration.py index c3e73291fa..a214a7492d 100644 --- a/src/calibre/gui2/viewer/integration.py +++ b/src/calibre/gui2/viewer/integration.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal diff --git a/src/calibre/gui2/viewer/search.py b/src/calibre/gui2/viewer/search.py index 9e0d72a582..99c479c74b 100644 --- a/src/calibre/gui2/viewer/search.py +++ b/src/calibre/gui2/viewer/search.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal diff --git a/src/calibre/gui2/viewer/widgets.py b/src/calibre/gui2/viewer/widgets.py index 67da85c03c..d262dda0f1 100644 --- a/src/calibre/gui2/viewer/widgets.py +++ b/src/calibre/gui2/viewer/widgets.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2020, Kovid Goyal diff --git a/src/calibre/utils/hyphenation/dictionaries.py b/src/calibre/utils/hyphenation/dictionaries.py index 7e82bb8244..39fd6928e4 100644 --- a/src/calibre/utils/hyphenation/dictionaries.py +++ b/src/calibre/utils/hyphenation/dictionaries.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal diff --git a/src/calibre/utils/hyphenation/hyphenate.py b/src/calibre/utils/hyphenation/hyphenate.py index e36a83fae0..ef55ac031f 100644 --- a/src/calibre/utils/hyphenation/hyphenate.py +++ b/src/calibre/utils/hyphenation/hyphenate.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal diff --git a/src/calibre/utils/hyphenation/test_hyphenation.py b/src/calibre/utils/hyphenation/test_hyphenation.py index dfaf1c265d..9bdc1574fa 100644 --- a/src/calibre/utils/hyphenation/test_hyphenation.py +++ b/src/calibre/utils/hyphenation/test_hyphenation.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal diff --git a/src/calibre/utils/xml_parse.py b/src/calibre/utils/xml_parse.py index 6b67d6bae2..549b04ba03 100644 --- a/src/calibre/utils/xml_parse.py +++ b/src/calibre/utils/xml_parse.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python # vim:fileencoding=utf-8 # License: GPL v3 Copyright: 2019, Kovid Goyal