Skip to content

Commit 29b506b

Browse files
authored
Update Lib/_pydatetime.py
1 parent c9d4fc2 commit 29b506b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Lib/_pydatetime.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,9 @@ def astimezone(self, tz=None):
21192119
# Ways to produce a string.
21202120

21212121
def _tzstr(self, basic):
2122-
"""Return formatted timezone offset (+xx:xx) or an empty string."""
2122+
"""Return formatted timezone offset (+xx:xx) or an empty string.
2123+
The colon separator is omitted if *basic* is true.
2124+
"""
21232125
off = self.utcoffset()
21242126
sep = '' if basic else ':'
21252127
return _format_offset(off, sep)

0 commit comments

Comments
 (0)