Skip to content

Commit 9604c60

Browse files
committed
chore: remove unused helper and fix formatting
1 parent 0d8129c commit 9604c60

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

altcha/altcha.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import urllib.parse
1010
from typing import Literal, TypedDict, cast, overload
1111
import datetime
12-
from datetime import timezone
1312

1413
# Define algorithms
1514
SHA1: Literal["SHA-1"] = "SHA-1"
@@ -737,14 +736,3 @@ def solve_challenge(
737736
return Solution(n, took)
738737

739738
return None
740-
741-
def _normalize_expires(expires: datetime.datetime | None) -> datetime.datetime | None:
742-
if expires is None:
743-
return None
744-
745-
# Case 1: naive datetime → assume UTC (backward compatibility)
746-
if expires.tzinfo is None:
747-
return expires.replace(tzinfo=timezone.utc)
748-
749-
# Case 2: aware datetime (any timezone) → convert to UTC
750-
return expires.astimezone(timezone.utc)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="altcha",
5-
version="0.2.0",
5+
version="1.0.0",
66
description="A library for creating and verifying challenges for ALTCHA.",
77
long_description=open("README.md").read(),
88
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)