New issue by Uriel12 on void-packages repository https://github.com/void-linux/void-packages/issues/20789 Description: ### System * xuname: *Void 5.4.29_1 x86_64 AuthenticAMD uptodate rrrmFFFF* * package: *gnome-passwordsafe version: 3.99.2* I did not see in the template file for gnome-passwordsafe any deviation from the upstream source. So maybe the error messages should be filed with the upstream project. The syntax errors mostly should be fine if my limited understanding of python3 is correct. But maybe someone else could take a look. ### Expected behavior Flawless install behavior. ### Actual behavior ``` Byte-compiling python3.8 code for module passwordsafe... usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:78: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.name_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:102: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.username_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:145: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.password_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:170: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.url_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:197: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.notes_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_row.py:61: SyntaxWarning: "is not" with a literal. Did you mean "!="? if self.database_manager.has_entry_name(self.entry_uuid) is True and self.label is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_row.py:68: SyntaxWarning: "is not" with a literal. Did you mean "!="? if (self.database_manager.has_entry_username(self.entry_uuid) is True and subtitle is not ""): usr/lib/python3.8/site-packages/passwordsafe/group_row.py:34: SyntaxWarning: "is not" with a literal. Did you mean "!="? if self.label is not None and self.label is not "": usr/lib/python3.8/site-packages/passwordsafe/main_window.py:185: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(self.get_application().file_list) is not 0: usr/lib/python3.8/site-packages/passwordsafe/main_window.py:188: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif passwordsafe.config_manager.get_first_start_screen() is True and filepath is not "" and filepath is not None and os.path.exists(filepath) is True: usr/lib/python3.8/site-packages/passwordsafe/main_window.py:204: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(passwordsafe.config_manager.get_last_opened_list()) is not 0: usr/lib/python3.8/site-packages/passwordsafe/main_window.py:470: SyntaxWarning: "is" with a literal. Did you mean "=="? if self.container.get_n_pages() is 0: usr/lib/python3.8/site-packages/passwordsafe/notes_dialog.py:120: SyntaxWarning: "is not" with a literal. Did you mean "!="? if entry.get_text() is not "": usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:25: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(self.unlocked_database.pathbar.viewport.get_children()) is not 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:29: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.unlocked_database.action_bar_box.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:39: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(self.unlocked_database.action_bar_box.get_children()) is not 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:42: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.unlocked_database.pathbar.viewport.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:49: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(self.unlocked_database.builder.get_object("title_box").get_children()) is not 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:63: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.unlocked_database.builder.get_object("title_box").get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/search.py:100: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.search_list_box.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/search.py:128: SyntaxWarning: "is not" with a literal. Did you mean "!="? if widget.get_text() is not "": usr/lib/python3.8/site-packages/passwordsafe/search.py:192: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.search_list_box.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/search.py:256: SyntaxWarning: "is not" with a literal. Did you mean "!="? if widget.get_text() is not "": usr/lib/python3.8/site-packages/passwordsafe/search.py:263: SyntaxWarning: "is" with a literal. Did you mean "=="? if self.search_list_box.get_children()[0].type is "GroupRow": usr/lib/python3.8/site-packages/passwordsafe/search.py:270: SyntaxWarning: "is" with a literal. Did you mean "=="? if selected_row.type is "GroupRow": usr/lib/python3.8/site-packages/passwordsafe/selection_ui.py:266: SyntaxWarning: "is" with a literal. Did you mean "=="? if selection_type is "all": usr/lib/python3.8/site-packages/passwordsafe/settings_dialog.py:60: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(passwordsafe.config_manager.get_last_opened_list()) is 0: usr/lib/python3.8/site-packages/passwordsafe/settings_dialog.py:111: SyntaxWarning: "is" with a literal. Did you mean "=="? if self.window.container is not NotImplemented and self.window.container.get_n_pages() is 0 or self.window.container is NotImplemented: usr/lib/python3.8/site-packages/passwordsafe/unlock_database.py:484: SyntaxWarning: "is not" with a literal. Did you mean "!="? if composite_unlock_entry.get_text() is not "" and self.composite_keyfile_path is not NotImplemented: usr/lib/python3.8/site-packages/passwordsafe/unlocked_database.py:435: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(list_box.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/unlocked_database.py:852: SyntaxWarning: "is not" with a literal. Did you mean "!="? if clear_clipboard_time is not 0: usr/lib/python3.8/site-packages/passwordsafe/unlocked_database.py:862: SyntaxWarning: "is not" with a literal. Did you mean "!="? if timeout is not 0: usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:78: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.name_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:102: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.username_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:145: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.password_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:170: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.url_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_page.py:197: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif scrolled_page.notes_property_row is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_row.py:61: SyntaxWarning: "is not" with a literal. Did you mean "!="? if self.database_manager.has_entry_name(self.entry_uuid) is True and self.label is not "": usr/lib/python3.8/site-packages/passwordsafe/entry_row.py:68: SyntaxWarning: "is not" with a literal. Did you mean "!="? if (self.database_manager.has_entry_username(self.entry_uuid) is True and subtitle is not ""): usr/lib/python3.8/site-packages/passwordsafe/group_row.py:34: SyntaxWarning: "is not" with a literal. Did you mean "!="? if self.label is not None and self.label is not "": usr/lib/python3.8/site-packages/passwordsafe/main_window.py:185: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(self.get_application().file_list) is not 0: usr/lib/python3.8/site-packages/passwordsafe/main_window.py:188: SyntaxWarning: "is not" with a literal. Did you mean "!="? elif passwordsafe.config_manager.get_first_start_screen() is True and filepath is not "" and filepath is not None and os.path.exists(filepath) is True: usr/lib/python3.8/site-packages/passwordsafe/main_window.py:204: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(passwordsafe.config_manager.get_last_opened_list()) is not 0: usr/lib/python3.8/site-packages/passwordsafe/main_window.py:470: SyntaxWarning: "is" with a literal. Did you mean "=="? if self.container.get_n_pages() is 0: usr/lib/python3.8/site-packages/passwordsafe/notes_dialog.py:120: SyntaxWarning: "is not" with a literal. Did you mean "!="? if entry.get_text() is not "": usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:25: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(self.unlocked_database.pathbar.viewport.get_children()) is not 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:29: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.unlocked_database.action_bar_box.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:39: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(self.unlocked_database.action_bar_box.get_children()) is not 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:42: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.unlocked_database.pathbar.viewport.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:49: SyntaxWarning: "is not" with a literal. Did you mean "!="? if len(self.unlocked_database.builder.get_object("title_box").get_children()) is not 0: usr/lib/python3.8/site-packages/passwordsafe/responsive_ui.py:63: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.unlocked_database.builder.get_object("title_box").get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/search.py:100: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.search_list_box.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/search.py:128: SyntaxWarning: "is not" with a literal. Did you mean "!="? if widget.get_text() is not "": usr/lib/python3.8/site-packages/passwordsafe/search.py:192: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(self.search_list_box.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/search.py:256: SyntaxWarning: "is not" with a literal. Did you mean "!="? if widget.get_text() is not "": usr/lib/python3.8/site-packages/passwordsafe/search.py:263: SyntaxWarning: "is" with a literal. Did you mean "=="? if self.search_list_box.get_children()[0].type is "GroupRow": usr/lib/python3.8/site-packages/passwordsafe/search.py:270: SyntaxWarning: "is" with a literal. Did you mean "=="? if selected_row.type is "GroupRow": usr/lib/python3.8/site-packages/passwordsafe/selection_ui.py:266: SyntaxWarning: "is" with a literal. Did you mean "=="? if selection_type is "all": usr/lib/python3.8/site-packages/passwordsafe/settings_dialog.py:60: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(passwordsafe.config_manager.get_last_opened_list()) is 0: usr/lib/python3.8/site-packages/passwordsafe/settings_dialog.py:111: SyntaxWarning: "is" with a literal. Did you mean "=="? if self.window.container is not NotImplemented and self.window.container.get_n_pages() is 0 or self.window.container is NotImplemented: usr/lib/python3.8/site-packages/passwordsafe/unlock_database.py:484: SyntaxWarning: "is not" with a literal. Did you mean "!="? if composite_unlock_entry.get_text() is not "" and self.composite_keyfile_path is not NotImplemented: usr/lib/python3.8/site-packages/passwordsafe/unlocked_database.py:435: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(list_box.get_children()) is 0: usr/lib/python3.8/site-packages/passwordsafe/unlocked_database.py:852: SyntaxWarning: "is not" with a literal. Did you mean "!="? if clear_clipboard_time is not 0: usr/lib/python3.8/site-packages/passwordsafe/unlocked_database.py:862: SyntaxWarning: "is not" with a literal. Did you mean "!="? if timeout is not 0: ``` ### Steps to reproduce the behavior