From c4ee35570d98a231713fe13bea93a0bd3b77b1c8 Mon Sep 17 00:00:00 2001 From: Jesse Moody Date: Mon, 20 Mar 2023 05:27:55 -0400 Subject: [PATCH] Update django github references to main instead of master branch. (#89951) --- homeassistant/util/dt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/util/dt.py b/homeassistant/util/dt.py index 09a7923aaaf..2dfc9a6f622 100644 --- a/homeassistant/util/dt.py +++ b/homeassistant/util/dt.py @@ -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\d{4})-(?P\d{1,2})-(?P\d{1,2})" r"[T ](?P\d{1,2}):(?P\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-?\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[-+]?)" 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-?\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.