jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770152 )
Change subject: match executable bits with shebangs
......................................................................
match executable bits with shebangs
Change-Id: I228f8048896d7083b7163cc0d49aa684986fa767
---
M pywikibot/bot_choice.py
M pywikibot/cosmetic_changes.py
M pywikibot/families/vikidia_family.py
M pywikibot/userinterfaces/buffer_interface.py
M pywikibot/userinterfaces/terminal_interface_base.py
M pywikibot/userinterfaces/terminal_interface_unix.py
M pywikibot/userinterfaces/terminal_interface_win32.py
M pywikibot/userinterfaces/win32_unicode.py
M setup.py
M tests/add_text_tests.py
M tests/api_tests.py
M tests/archive/disambredir_tests.py
M tests/archive/imagecopy_tests.py
M tests/archive/isbn_tests.py
M tests/archivebot_tests.py
M tests/basesite_tests.py
M tests/bot_tests.py
M tests/cache_tests.py
M tests/category_bot_tests.py
M tests/category_tests.py
M tests/checkimages_tests.py
M tests/collections_tests.py
M tests/cosmetic_changes_tests.py
M tests/data/csv_ingestion.csv
M tests/data_ingestion_tests.py
M tests/datasite_tests.py
M tests/date_tests.py
M tests/deletionbot_tests.py
M tests/deprecation_tests.py
M tests/diff_tests.py
M tests/djvu_tests.py
M tests/dry_api_tests.py
M tests/dry_site_tests.py
M tests/echo_tests.py
M tests/edit_failure_tests.py
M tests/edit_tests.py
M tests/eventstreams_tests.py
M tests/family_tests.py
M tests/file_tests.py
M tests/fixes_tests.py
M tests/fixing_redirects_tests.py
M tests/flow_edit_tests.py
M tests/flow_tests.py
M tests/flow_thanks_tests.py
M tests/generate_family_file_tests.py
M tests/generate_user_files_tests.py
M tests/http_tests.py
M tests/i18n_tests.py
M tests/interwiki_graph_tests.py
M tests/interwiki_link_tests.py
M tests/interwikidata_tests.py
M tests/interwikimap_tests.py
M tests/l10n_tests.py
M tests/link_tests.py
M tests/linter_tests.py
M tests/logentries_tests.py
M tests/login_tests.py
M tests/mediawikiversion_tests.py
M tests/mysql_tests.py
M tests/namespace_tests.py
M tests/noreferences_tests.py
M tests/oauth_tests.py
M tests/page_tests.py
M tests/pagegenerators_tests.py
M tests/paraminfo_tests.py
M tests/patrolbot_tests.py
M tests/plural_tests.py
M tests/proofreadpage_tests.py
M tests/protectbot_tests.py
M tests/pwb/print_argv.py
M tests/pwb/print_env.py
M tests/pwb/print_locals.py
M tests/pwb/print_unicode.py
M tests/pwb_tests.py
M tests/redirect_bot_tests.py
M tests/reflinks_tests.py
M tests/replacebot_tests.py
M tests/script_tests.py
M tests/site_decorators_tests.py
M tests/site_detect_tests.py
M tests/site_login_logout_tests.py
M tests/site_tests.py
M tests/siteinfo_tests.py
M tests/sparql_tests.py
M tests/template_bot_tests.py
M tests/tests_tests.py
M tests/textlib_tests.py
M tests/thanks_tests.py
M tests/thread_tests.py
M tests/timestamp_tests.py
M tests/timestripper_tests.py
M tests/titletranslate_tests.py
M tests/tk_tests.py
M tests/token_tests.py
M tests/tools_chars_tests.py
M tests/tools_formatter_tests.py
M tests/tools_tests.py
M tests/ui_options_tests.py
M tests/ui_tests.py
M tests/update_script_tests.py
M tests/upload_tests.py
M tests/uploadbot_tests.py
M tests/uploadscript_tests.py
M tests/user_tests.py
M tests/weblinkchecker_tests.py
M tests/wikibase_edit_tests.py
M tests/wikibase_tests.py
M tests/wikistats_tests.py
M tests/xmlreader_tests.py
109 files changed, 0 insertions(+), 0 deletions(-)
Approvals:
JJMC89: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot_choice.py b/pywikibot/bot_choice.py
old mode 100755
new mode 100644
diff --git a/pywikibot/cosmetic_changes.py b/pywikibot/cosmetic_changes.py
old mode 100755
new mode 100644
diff --git a/pywikibot/families/vikidia_family.py b/pywikibot/families/vikidia_family.py
old mode 100755
new mode 100644
diff --git a/pywikibot/userinterfaces/buffer_interface.py b/pywikibot/userinterfaces/buffer_interface.py
old mode 100755
new mode 100644
diff --git a/pywikibot/userinterfaces/terminal_interface_base.py b/pywikibot/userinterfaces/terminal_interface_base.py
old mode 100755
new mode 100644
diff --git a/pywikibot/userinterfaces/terminal_interface_unix.py b/pywikibot/userinterfaces/terminal_interface_unix.py
old mode 100755
new mode 100644
diff --git a/pywikibot/userinterfaces/terminal_interface_win32.py b/pywikibot/userinterfaces/terminal_interface_win32.py
old mode 100755
new mode 100644
diff --git a/pywikibot/userinterfaces/win32_unicode.py b/pywikibot/userinterfaces/win32_unicode.py
old mode 100755
new mode 100644
diff --git a/setup.py b/setup.py
old mode 100644
new mode 100755
diff --git a/tests/add_text_tests.py b/tests/add_text_tests.py
old mode 100644
new mode 100755
diff --git a/tests/api_tests.py b/tests/api_tests.py
old mode 100644
new mode 100755
diff --git a/tests/archive/disambredir_tests.py b/tests/archive/disambredir_tests.py
old mode 100644
new mode 100755
diff --git a/tests/archive/imagecopy_tests.py b/tests/archive/imagecopy_tests.py
old mode 100644
new mode 100755
diff --git a/tests/archive/isbn_tests.py b/tests/archive/isbn_tests.py
old mode 100644
new mode 100755
diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/basesite_tests.py b/tests/basesite_tests.py
old mode 100644
new mode 100755
diff --git a/tests/bot_tests.py b/tests/bot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/cache_tests.py b/tests/cache_tests.py
old mode 100644
new mode 100755
diff --git a/tests/category_bot_tests.py b/tests/category_bot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/category_tests.py b/tests/category_tests.py
old mode 100644
new mode 100755
diff --git a/tests/checkimages_tests.py b/tests/checkimages_tests.py
old mode 100644
new mode 100755
diff --git a/tests/collections_tests.py b/tests/collections_tests.py
old mode 100644
new mode 100755
diff --git a/tests/cosmetic_changes_tests.py b/tests/cosmetic_changes_tests.py
old mode 100644
new mode 100755
diff --git a/tests/data/csv_ingestion.csv b/tests/data/csv_ingestion.csv
old mode 100755
new mode 100644
diff --git a/tests/data_ingestion_tests.py b/tests/data_ingestion_tests.py
old mode 100644
new mode 100755
diff --git a/tests/datasite_tests.py b/tests/datasite_tests.py
old mode 100644
new mode 100755
diff --git a/tests/date_tests.py b/tests/date_tests.py
old mode 100644
new mode 100755
diff --git a/tests/deletionbot_tests.py b/tests/deletionbot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/deprecation_tests.py b/tests/deprecation_tests.py
old mode 100644
new mode 100755
diff --git a/tests/diff_tests.py b/tests/diff_tests.py
old mode 100644
new mode 100755
diff --git a/tests/djvu_tests.py b/tests/djvu_tests.py
old mode 100644
new mode 100755
diff --git a/tests/dry_api_tests.py b/tests/dry_api_tests.py
old mode 100644
new mode 100755
diff --git a/tests/dry_site_tests.py b/tests/dry_site_tests.py
old mode 100644
new mode 100755
diff --git a/tests/echo_tests.py b/tests/echo_tests.py
old mode 100644
new mode 100755
diff --git a/tests/edit_failure_tests.py b/tests/edit_failure_tests.py
old mode 100644
new mode 100755
diff --git a/tests/edit_tests.py b/tests/edit_tests.py
old mode 100644
new mode 100755
diff --git a/tests/eventstreams_tests.py b/tests/eventstreams_tests.py
old mode 100644
new mode 100755
diff --git a/tests/family_tests.py b/tests/family_tests.py
old mode 100644
new mode 100755
diff --git a/tests/file_tests.py b/tests/file_tests.py
old mode 100644
new mode 100755
diff --git a/tests/fixes_tests.py b/tests/fixes_tests.py
old mode 100644
new mode 100755
diff --git a/tests/fixing_redirects_tests.py b/tests/fixing_redirects_tests.py
old mode 100644
new mode 100755
diff --git a/tests/flow_edit_tests.py b/tests/flow_edit_tests.py
old mode 100644
new mode 100755
diff --git a/tests/flow_tests.py b/tests/flow_tests.py
old mode 100644
new mode 100755
diff --git a/tests/flow_thanks_tests.py b/tests/flow_thanks_tests.py
old mode 100644
new mode 100755
diff --git a/tests/generate_family_file_tests.py b/tests/generate_family_file_tests.py
old mode 100644
new mode 100755
diff --git a/tests/generate_user_files_tests.py b/tests/generate_user_files_tests.py
old mode 100644
new mode 100755
diff --git a/tests/http_tests.py b/tests/http_tests.py
old mode 100644
new mode 100755
diff --git a/tests/i18n_tests.py b/tests/i18n_tests.py
old mode 100644
new mode 100755
diff --git a/tests/interwiki_graph_tests.py b/tests/interwiki_graph_tests.py
old mode 100644
new mode 100755
diff --git a/tests/interwiki_link_tests.py b/tests/interwiki_link_tests.py
old mode 100644
new mode 100755
diff --git a/tests/interwikidata_tests.py b/tests/interwikidata_tests.py
old mode 100644
new mode 100755
diff --git a/tests/interwikimap_tests.py b/tests/interwikimap_tests.py
old mode 100644
new mode 100755
diff --git a/tests/l10n_tests.py b/tests/l10n_tests.py
old mode 100644
new mode 100755
diff --git a/tests/link_tests.py b/tests/link_tests.py
old mode 100644
new mode 100755
diff --git a/tests/linter_tests.py b/tests/linter_tests.py
old mode 100644
new mode 100755
diff --git a/tests/logentries_tests.py b/tests/logentries_tests.py
old mode 100644
new mode 100755
diff --git a/tests/login_tests.py b/tests/login_tests.py
old mode 100644
new mode 100755
diff --git a/tests/mediawikiversion_tests.py b/tests/mediawikiversion_tests.py
old mode 100644
new mode 100755
diff --git a/tests/mysql_tests.py b/tests/mysql_tests.py
old mode 100644
new mode 100755
diff --git a/tests/namespace_tests.py b/tests/namespace_tests.py
old mode 100644
new mode 100755
diff --git a/tests/noreferences_tests.py b/tests/noreferences_tests.py
old mode 100644
new mode 100755
diff --git a/tests/oauth_tests.py b/tests/oauth_tests.py
old mode 100644
new mode 100755
diff --git a/tests/page_tests.py b/tests/page_tests.py
old mode 100644
new mode 100755
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py
old mode 100644
new mode 100755
diff --git a/tests/paraminfo_tests.py b/tests/paraminfo_tests.py
old mode 100644
new mode 100755
diff --git a/tests/patrolbot_tests.py b/tests/patrolbot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/plural_tests.py b/tests/plural_tests.py
old mode 100644
new mode 100755
diff --git a/tests/proofreadpage_tests.py b/tests/proofreadpage_tests.py
old mode 100644
new mode 100755
diff --git a/tests/protectbot_tests.py b/tests/protectbot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/pwb/print_argv.py b/tests/pwb/print_argv.py
old mode 100644
new mode 100755
diff --git a/tests/pwb/print_env.py b/tests/pwb/print_env.py
old mode 100644
new mode 100755
diff --git a/tests/pwb/print_locals.py b/tests/pwb/print_locals.py
old mode 100644
new mode 100755
diff --git a/tests/pwb/print_unicode.py b/tests/pwb/print_unicode.py
old mode 100644
new mode 100755
diff --git a/tests/pwb_tests.py b/tests/pwb_tests.py
old mode 100644
new mode 100755
diff --git a/tests/redirect_bot_tests.py b/tests/redirect_bot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/reflinks_tests.py b/tests/reflinks_tests.py
old mode 100644
new mode 100755
diff --git a/tests/replacebot_tests.py b/tests/replacebot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/script_tests.py b/tests/script_tests.py
old mode 100644
new mode 100755
diff --git a/tests/site_decorators_tests.py b/tests/site_decorators_tests.py
old mode 100644
new mode 100755
diff --git a/tests/site_detect_tests.py b/tests/site_detect_tests.py
old mode 100644
new mode 100755
diff --git a/tests/site_login_logout_tests.py b/tests/site_login_logout_tests.py
old mode 100644
new mode 100755
diff --git a/tests/site_tests.py b/tests/site_tests.py
old mode 100644
new mode 100755
diff --git a/tests/siteinfo_tests.py b/tests/siteinfo_tests.py
old mode 100644
new mode 100755
diff --git a/tests/sparql_tests.py b/tests/sparql_tests.py
old mode 100644
new mode 100755
diff --git a/tests/template_bot_tests.py b/tests/template_bot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/tests_tests.py b/tests/tests_tests.py
old mode 100644
new mode 100755
diff --git a/tests/textlib_tests.py b/tests/textlib_tests.py
old mode 100644
new mode 100755
diff --git a/tests/thanks_tests.py b/tests/thanks_tests.py
old mode 100644
new mode 100755
diff --git a/tests/thread_tests.py b/tests/thread_tests.py
old mode 100644
new mode 100755
diff --git a/tests/timestamp_tests.py b/tests/timestamp_tests.py
old mode 100644
new mode 100755
diff --git a/tests/timestripper_tests.py b/tests/timestripper_tests.py
old mode 100644
new mode 100755
diff --git a/tests/titletranslate_tests.py b/tests/titletranslate_tests.py
old mode 100644
new mode 100755
diff --git a/tests/tk_tests.py b/tests/tk_tests.py
old mode 100644
new mode 100755
diff --git a/tests/token_tests.py b/tests/token_tests.py
old mode 100644
new mode 100755
diff --git a/tests/tools_chars_tests.py b/tests/tools_chars_tests.py
old mode 100644
new mode 100755
diff --git a/tests/tools_formatter_tests.py b/tests/tools_formatter_tests.py
old mode 100644
new mode 100755
diff --git a/tests/tools_tests.py b/tests/tools_tests.py
old mode 100644
new mode 100755
diff --git a/tests/ui_options_tests.py b/tests/ui_options_tests.py
old mode 100644
new mode 100755
diff --git a/tests/ui_tests.py b/tests/ui_tests.py
old mode 100644
new mode 100755
diff --git a/tests/update_script_tests.py b/tests/update_script_tests.py
old mode 100644
new mode 100755
diff --git a/tests/upload_tests.py b/tests/upload_tests.py
old mode 100644
new mode 100755
diff --git a/tests/uploadbot_tests.py b/tests/uploadbot_tests.py
old mode 100644
new mode 100755
diff --git a/tests/uploadscript_tests.py b/tests/uploadscript_tests.py
old mode 100644
new mode 100755
diff --git a/tests/user_tests.py b/tests/user_tests.py
old mode 100644
new mode 100755
diff --git a/tests/weblinkchecker_tests.py b/tests/weblinkchecker_tests.py
old mode 100644
new mode 100755
diff --git a/tests/wikibase_edit_tests.py b/tests/wikibase_edit_tests.py
old mode 100644
new mode 100755
diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py
old mode 100644
new mode 100755
diff --git a/tests/wikistats_tests.py b/tests/wikistats_tests.py
old mode 100644
new mode 100755
diff --git a/tests/xmlreader_tests.py b/tests/xmlreader_tests.py
old mode 100644
new mode 100755
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770152
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I228f8048896d7083b7163cc0d49aa684986fa767
Gerrit-Change-Number: 770152
Gerrit-PatchSet: 1
Gerrit-Owner: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia(a)gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770125 )
Change subject: [IMPR] use os constants for os._exit
......................................................................
[IMPR] use os constants for os._exit
Change-Id: I8fb3a475a275ae7bb0817e9a5eeff57a00ac1c1b
---
M pywikibot/daemonize.py
1 file changed, 3 insertions(+), 2 deletions(-)
Approvals:
Xqt: Verified; Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/daemonize.py b/pywikibot/daemonize.py
index 0cba456..6b433e8 100644
--- a/pywikibot/daemonize.py
+++ b/pywikibot/daemonize.py
@@ -1,6 +1,6 @@
"""Module to daemonize the current process on Unix."""
#
-# (C) Pywikibot team, 2007-2021
+# (C) Pywikibot team, 2007-2022
#
# Distributed under the terms of the MIT license.
#
@@ -56,10 +56,11 @@
if chdir:
os.chdir('/')
return
+
# Write out the pid
path = os.path.basename(sys.argv[0]) + '.pid'
with codecs.open(path, 'w', 'utf-8') as f:
f.write(str(pid))
# Exit to return control to the terminal
# os._exit to prevent the cleanup to run
- os._exit(0)
+ os._exit(os.EX_OK)
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/770125
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I8fb3a475a275ae7bb0817e9a5eeff57a00ac1c1b
Gerrit-Change-Number: 770125
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged