summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt2
-rw-r--r--TODO.txt2
-rw-r--r--src/isodate/duration.py4
-rw-r--r--src/isodate/isotime.py2
-rw-r--r--src/isodate/isotzinfo.py2
-rw-r--r--src/isodate/tests/test_duration.py4
-rw-r--r--src/isodate/tests/test_strf.py4
7 files changed, 10 insertions, 10 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index a44e1af..c526264 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -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)
------------------
diff --git a/TODO.txt b/TODO.txt
index 6843fa3..b72a651 100644
--- a/TODO.txt
+++ b/TODO.txt
@@ -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
diff --git a/src/isodate/duration.py b/src/isodate/duration.py
index f771b54..d533a6f 100644
--- a/src/isodate/duration.py
+++ b/src/isodate/duration.py
@@ -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
@@ -225,7 +225,7 @@ class Duration:
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 ...
diff --git a/src/isodate/isotime.py b/src/isodate/isotime.py
index 470c5b6..619e4aa 100644
--- a/src/isodate/isotime.py
+++ b/src/isodate/isotime.py
@@ -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
diff --git a/src/isodate/isotzinfo.py b/src/isodate/isotzinfo.py
index b7fa41b..ec6dd17 100644
--- a/src/isodate/isotzinfo.py
+++ b/src/isodate/isotzinfo.py
@@ -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
diff --git a/src/isodate/tests/test_duration.py b/src/isodate/tests/test_duration.py
index 5d36a3e..20c3f2d 100644
--- a/src/isodate/tests/test_duration.py
+++ b/src/isodate/tests/test_duration.py
@@ -133,7 +133,7 @@ DATE_TEST_CASES = (
),
)
-# 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)),
@@ -267,7 +267,7 @@ class DurationTest(unittest.TestCase):
def test_parseerror(self):
"""
- Test for unparseable duration string.
+ Test for unparsable duration string.
"""
self.assertRaises(ISO8601Error, parse_duration, "T10:10:10")
diff --git a/src/isodate/tests/test_strf.py b/src/isodate/tests/test_strf.py
index 701c877..2e2b246 100644
--- a/src/isodate/tests/test_strf.py
+++ b/src/isodate/tests/test_strf.py
@@ -56,7 +56,7 @@ def create_testcase(dt, format, expectation):
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:
@@ -80,7 +80,7 @@ def create_testcase(dt, format, expectation):
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