mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Update django github references to main instead of master branch. (#89951)
This commit is contained in:
parent
9a784fddef
commit
c4ee35570d
@ -24,7 +24,7 @@ EPOCHORDINAL = dt.datetime(1970, 1, 1).toordinal()
|
||||
|
||||
# Copyright (c) Django Software Foundation and individual contributors.
|
||||
# All rights reserved.
|
||||
# https://github.com/django/django/blob/master/LICENSE
|
||||
# https://github.com/django/django/blob/main/LICENSE
|
||||
DATETIME_RE = re.compile(
|
||||
r"(?P<year>\d{4})-(?P<month>\d{1,2})-(?P<day>\d{1,2})"
|
||||
r"[T ](?P<hour>\d{1,2}):(?P<minute>\d{1,2})"
|
||||
@ -34,7 +34,7 @@ DATETIME_RE = re.compile(
|
||||
|
||||
# Copyright (c) Django Software Foundation and individual contributors.
|
||||
# All rights reserved.
|
||||
# https://github.com/django/django/blob/master/LICENSE
|
||||
# https://github.com/django/django/blob/main/LICENSE
|
||||
STANDARD_DURATION_RE = re.compile(
|
||||
r"^"
|
||||
r"(?:(?P<days>-?\d+) (days?, )?)?"
|
||||
@ -48,7 +48,7 @@ STANDARD_DURATION_RE = re.compile(
|
||||
|
||||
# Copyright (c) Django Software Foundation and individual contributors.
|
||||
# All rights reserved.
|
||||
# https://github.com/django/django/blob/master/LICENSE
|
||||
# https://github.com/django/django/blob/main/LICENSE
|
||||
ISO8601_DURATION_RE = re.compile(
|
||||
r"^(?P<sign>[-+]?)"
|
||||
r"P"
|
||||
@ -63,7 +63,7 @@ ISO8601_DURATION_RE = re.compile(
|
||||
|
||||
# Copyright (c) Django Software Foundation and individual contributors.
|
||||
# All rights reserved.
|
||||
# https://github.com/django/django/blob/master/LICENSE
|
||||
# https://github.com/django/django/blob/main/LICENSE
|
||||
POSTGRES_INTERVAL_RE = re.compile(
|
||||
r"^"
|
||||
r"(?:(?P<days>-?\d+) (days? ?))?"
|
||||
@ -178,7 +178,7 @@ def start_of_local_day(dt_or_d: dt.date | dt.datetime | None = None) -> dt.datet
|
||||
|
||||
# Copyright (c) Django Software Foundation and individual contributors.
|
||||
# All rights reserved.
|
||||
# https://github.com/django/django/blob/master/LICENSE
|
||||
# https://github.com/django/django/blob/main/LICENSE
|
||||
def parse_datetime(dt_str: str) -> dt.datetime | None:
|
||||
"""Parse a string and return a datetime.datetime.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user