Skip to content

Commit

Permalink
use datetime.timezone.utc instead of datetime.UTC which only exists a…
Browse files Browse the repository at this point in the history
…s an alias in 3.11
  • Loading branch information
meeb committed Jul 27, 2024
1 parent b80d4fc commit 5cd23ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_public_interface.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from datetime import UTC, datetime
from datetime import datetime, timezone
from ipaddress import IPv4Network, IPv6Network
from pathlib import Path

Expand All @@ -11,8 +11,10 @@

import whoisit


BASE_DIR = Path(__file__).resolve().parent
RESPONSES = BASE_DIR / "responses"
UTC = timezone.utc


class SyncPublicInterfaceTestCase(unittest.TestCase):
Expand Down

0 comments on commit 5cd23ec

Please sign in to comment.