Skip to content

Commit 8856fdf

Browse files
authored
Merge pull request #70 from kianmeng/fix-typos
Fix typos
2 parents 14aefdd + cc57560 commit 8856fdf

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

CHANGES.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ CHANGES
9090
0.4.3 (2010-10-29)
9191
------------------
9292

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

9595
0.4.2 (2010-10-28)
9696
------------------

TODO.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ not complete.
99
Missing features:
1010
-----------------
1111

12-
* time formating does not allow to create fractional representations.
12+
* time formatting does not allow to create fractional representations.
1313
* parser for ISO intervals.
1414
* currently microseconds are always padded to a length of 6 characters.
1515
trailing 0s should be optional

src/isodate/duration.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def fquotmod(val, low, high):
1919
a, b = val - low, high - low
2020
div = (a / b).to_integral(ROUND_FLOOR)
2121
mod = a - div * b
22-
# if we were not usig Decimal, it would look like this.
22+
# if we were not using Decimal, it would look like this.
2323
# div, mod = divmod(val - low, high - low)
2424
mod += low
2525
return int(div), mod
@@ -225,7 +225,7 @@ def __sub__(self, other):
225225

226226
def __rsub__(self, other):
227227
"""
228-
It is possible to subtract Duration objecs from date, datetime and
228+
It is possible to subtract Duration objects from date, datetime and
229229
timedelta objects.
230230
231231
TODO: there is some weird behaviour in date - timedelta ...

src/isodate/isotime.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def parse_time(timestring):
7676
Following ISO 8601 formats are supported:
7777
(as decimal separator a ',' or a '.' is allowed)
7878
hhmmss.ssTZD basic complete time
79-
hh:mm:ss.ssTZD extended compelte time
79+
hh:mm:ss.ssTZD extended complete time
8080
hhmm.mmTZD basic reduced accuracy time
8181
hh:mm.mmTZD extended reduced accuracy time
8282
hh.hhTZD basic reduced accuracy time

src/isodate/isotzinfo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def build_tzinfo(tzname, tzsign="+", tzhour=0, tzmin=0):
3434

3535
def parse_tzinfo(tzstring):
3636
"""
37-
Parses ISO 8601 time zone designators to tzinfo objecs.
37+
Parses ISO 8601 time zone designators to tzinfo objects.
3838
3939
A time zone designator can be in the following format:
4040
no designator indicates local time zone

src/isodate/tests/test_duration.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
),
134134
)
135135

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

268268
def test_parseerror(self):
269269
"""
270-
Test for unparseable duration string.
270+
Test for unparsable duration string.
271271
"""
272272
self.assertRaises(ISO8601Error, parse_duration, "T10:10:10")
273273

src/isodate/tests/test_strf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def localtime_mock(self, secs):
5656
tm_idst=1
5757
"""
5858
tt = self.ORIG["localtime"](secs)
59-
# befor 2000 everything is dst, after 2000 no dst.
59+
# before 2000 everything is dst, after 2000 no dst.
6060
if tt.tm_year < 2000:
6161
dst = 1
6262
else:
@@ -80,7 +80,7 @@ def setUp(self):
8080
self.ORIG["DSTOFFSET"] = tzinfo.DSTOFFSET
8181
self.ORIG["DSTDIFF"] = tzinfo.DSTDIFF
8282
self.ORIG["localtime"] = time.localtime
83-
# ovveride all saved values with fixtures.
83+
# override all saved values with fixtures.
8484
# calculate LOCAL TZ offset, so that this test runs in
8585
# every time zone
8686
tzinfo.STDOFFSET = timedelta(seconds=36000) # assume LOC = +10:00

0 commit comments

Comments
 (0)