From 26f249633289941cdc91996c4b8abeffe3a65010 Mon Sep 17 00:00:00 2001 From: Hamza Rashid Date: Fri, 12 May 2023 18:24:46 +0100 Subject: [PATCH] Update setup.py Replaced "has_key()" with key "in" dict, as method is deprecated in python 3.x --- src/alfanous/setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/alfanous/setup.py b/src/alfanous/setup.py index 348b8b99..3432e15f 100755 --- a/src/alfanous/setup.py +++ b/src/alfanous/setup.py @@ -14,11 +14,11 @@ information_file = open("./resources/information.json") information = json.loads(information_file.read()) if information_file else {} -current_version = information["version"] if information.has_key("version") \ +current_version = information["version"] if "version" in information \ else 0.7 -current_description = information["description"] if information.has_key("description") \ +current_description = information["description"] if "description" in information \ else """ Alfanous is a search engine provide the simple and advanced search in the Holy Qur'an and more features..""" -current_lib_usage = information["lib_usage"] if information.has_key("lib_usage") \ +current_lib_usage = information["lib_usage"] if "lib_usage" in information \ else " $ sudo pip install alfanous" # TODO may add pre-install code here