Python 3.10 compatibility
Some checks failed
Deploy / Check for new spoiler (push) Has been cancelled

This commit is contained in:
tooomm 2025-08-10 13:20:36 +02:00 committed by GitHub
parent d74a762f35
commit 04150f692e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -261,13 +261,13 @@ def open_header(card_xml_file: IO[Any], filename: str) -> None:
card_xml_file.write(
"<cockatrice_carddatabase version='4' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='https://raw.githubusercontent.com/Cockatrice/Cockatrice/master/doc/carddatabase_v4/cards.xsd'>\n"
+ " <!--\n"
+ " Created At: " + datetime.datetime.now(datetime.UTC).strftime("%a, %b %d %Y, %H:%M:%S") + " (UTC)\n"
+ " Created At: " + datetime.datetime.now(datetime.timezone.utc).strftime("%a, %b %d %Y, %H:%M:%S") + " (UTC)\n"
+ " \n"
+ " THIS FILE IS AUTOMATICALLY GENERATED & ALL EDITS WILL BE OVERRIDDEN.\n"
+ " -->\n"
+ "<info>\n"
+ " <author>Cockatrice/Magic-Spoiler</author>\n"
+ " <createdAt>" + datetime.datetime.now(datetime.UTC).strftime("%Y-%m-%d %H:%M:%S") + " (UTC)</createdAt>\n"
+ " <createdAt>" + datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d %H:%M:%S") + " (UTC)</createdAt>\n"
+ " <sourceUrl>https://raw.githubusercontent.com/Cockatrice/Magic-Spoiler/files/" + filename + "</sourceUrl>\n"
+ " <sourceVersion></sourceVersion>\n"
+ "</info>\n"