Skip to content

Commit

Permalink
Merge pull request #70 from kianmeng/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
gweis authored Mar 13, 2022
2 parents 14aefdd + cc57560 commit 8856fdf
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ CHANGES
0.4.3 (2010-10-29)
------------------

- Fixed problem with %P formating and fractions (supplied by David Brooks)
- Fixed problem with %P formatting and fractions (supplied by David Brooks)

0.4.2 (2010-10-28)
------------------
Expand Down
2 changes: 1 addition & 1 deletion TODO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ not complete.
Missing features:
-----------------

* time formating does not allow to create fractional representations.
* time formatting does not allow to create fractional representations.
* parser for ISO intervals.
* currently microseconds are always padded to a length of 6 characters.
trailing 0s should be optional
Expand Down
4 changes: 2 additions & 2 deletions src/isodate/duration.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def fquotmod(val, low, high):
a, b = val - low, high - low
div = (a / b).to_integral(ROUND_FLOOR)
mod = a - div * b
# if we were not usig Decimal, it would look like this.
# if we were not using Decimal, it would look like this.
# div, mod = divmod(val - low, high - low)
mod += low
return int(div), mod
Expand Down Expand Up @@ -225,7 +225,7 @@ def __sub__(self, other):

def __rsub__(self, other):
"""
It is possible to subtract Duration objecs from date, datetime and
It is possible to subtract Duration objects from date, datetime and
timedelta objects.
TODO: there is some weird behaviour in date - timedelta ...
Expand Down
2 changes: 1 addition & 1 deletion src/isodate/isotime.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def parse_time(timestring):
Following ISO 8601 formats are supported:
(as decimal separator a ',' or a '.' is allowed)
hhmmss.ssTZD basic complete time
hh:mm:ss.ssTZD extended compelte time
hh:mm:ss.ssTZD extended complete time
hhmm.mmTZD basic reduced accuracy time
hh:mm.mmTZD extended reduced accuracy time
hh.hhTZD basic reduced accuracy time
Expand Down
2 changes: 1 addition & 1 deletion src/isodate/isotzinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def build_tzinfo(tzname, tzsign="+", tzhour=0, tzmin=0):

def parse_tzinfo(tzstring):
"""
Parses ISO 8601 time zone designators to tzinfo objecs.
Parses ISO 8601 time zone designators to tzinfo objects.
A time zone designator can be in the following format:
no designator indicates local time zone
Expand Down
4 changes: 2 additions & 2 deletions src/isodate/tests/test_duration.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
),
)

# A list of test cases of additon of date/datetime and Duration. The results
# A list of test cases of addition of date/datetime and Duration. The results
# are compared against a given expected result.
DATE_CALC_TEST_CASES = (
(date(2000, 2, 1), Duration(years=1, months=1), date(2001, 3, 1)),
Expand Down Expand Up @@ -267,7 +267,7 @@ def test_typeerror(self):

def test_parseerror(self):
"""
Test for unparseable duration string.
Test for unparsable duration string.
"""
self.assertRaises(ISO8601Error, parse_duration, "T10:10:10")

Expand Down
4 changes: 2 additions & 2 deletions src/isodate/tests/test_strf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def localtime_mock(self, secs):
tm_idst=1
"""
tt = self.ORIG["localtime"](secs)
# befor 2000 everything is dst, after 2000 no dst.
# before 2000 everything is dst, after 2000 no dst.
if tt.tm_year < 2000:
dst = 1
else:
Expand All @@ -80,7 +80,7 @@ def setUp(self):
self.ORIG["DSTOFFSET"] = tzinfo.DSTOFFSET
self.ORIG["DSTDIFF"] = tzinfo.DSTDIFF
self.ORIG["localtime"] = time.localtime
# ovveride all saved values with fixtures.
# override all saved values with fixtures.
# calculate LOCAL TZ offset, so that this test runs in
# every time zone
tzinfo.STDOFFSET = timedelta(seconds=36000) # assume LOC = +10:00
Expand Down

0 comments on commit 8856fdf

Please sign in to comment.