Merge pull request #41 from gutierri/pacth-fixs-python3

fixs f-string to format
This commit is contained in:
Thomas Vogt 2019-04-25 08:13:09 +02:00 committed by GitHub
commit 4da73476b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ if __name__ == "__main__":
elif receivedMessage[0] == "grepMetaUrls" and len(receivedMessage) == 2: elif receivedMessage[0] == "grepMetaUrls" and len(receivedMessage) == 2:
opt_args = ["grep", "-iE"] opt_args = ["grep", "-iE"]
url_field_names = receivedMessage[1] url_field_names = receivedMessage[1]
pos_args = [f"^({'|'.join(url_field_names)}):"] pos_args = ["^({}):".format('|'.join(url_field_names))]
elif receivedMessage[0] == "otp" and len(receivedMessage) == 2: elif receivedMessage[0] == "otp" and len(receivedMessage) == 2:
opt_args = ["otp"] opt_args = ["otp"]
key = receivedMessage[1] key = receivedMessage[1]