Skip to content

Commit

Permalink
Fix a number of typos / spelling errors found when running
Browse files Browse the repository at this point in the history
project through a typo checker.
  • Loading branch information
chu11 committed Apr 7, 2023
1 parent 96a1ed0 commit 223eea9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pip install parsedatetime
```

## Development environment
Development is done using a `pipenv` virtural environment
Development is done using a `pipenv` virtual environment
```
make env
```
Expand Down
24 changes: 12 additions & 12 deletions parsedatetime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def _convertUnitAsWords(self, unitText):
def _buildTime(self, source, quantity, modifier, units):
"""
Take C{quantity}, C{modifier} and C{unit} strings and convert them
into values. After converting, calcuate the time and return the
into values. After converting, calculate the time and return the
adjusted sourceTime.
@type source: time
Expand Down Expand Up @@ -1321,7 +1321,7 @@ def _partialParseModifier(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -1356,7 +1356,7 @@ def _partialParseUnits(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -1401,7 +1401,7 @@ def _partialParseQUnits(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -1446,7 +1446,7 @@ def _partialParseDateStr(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -1520,7 +1520,7 @@ def _partialParseDateStd(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -1558,7 +1558,7 @@ def _partialParseDayStr(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -1596,7 +1596,7 @@ def _partialParseWeekday(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -1639,7 +1639,7 @@ def _partialParseTimeStr(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -1677,7 +1677,7 @@ def _partialParseMeridian(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -1721,7 +1721,7 @@ def _partialParseTimeStd(self, s, sourceTime):
@rtype: tuple
@return: tuple of remained date/time text, datetime object and
an boolean value to describ if matched or not
an boolean value to describe if matched or not
"""
parseStr = None
Expand Down Expand Up @@ -2153,7 +2153,7 @@ def nlp(self, inputString, sourceTime=None, version=None):
# Units only; must be preceded by a modifier
if len(matches) > 0 and matches[-1][3] == 0:
m = self.ptc.CRE_UNITS_ONLY.search(inputString[startpos:])
# Ensure that any match is immediately proceded by the
# Ensure that any match is immediately preceded by the
# modifier. "Next is the word 'month'" should not parse as a
# date while "next month" should
if m is not None and \
Expand Down
2 changes: 1 addition & 1 deletion tests/TestInc.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def testIncMonths(self):
self.assertExpectedResult(
self.cal.inc(s, month=-1).timetuple(), t.timetuple())

# End of month Jan 31 to Feb - Febuary only has 28 days
# End of month Jan 31 to Feb - February only has 28 days
s = datetime.datetime(2006, 1, 31, 12, 0, 0)
t = datetime.datetime(2006, 2, 28, 12, 0, 0)
self.assertExpectedResult(
Expand Down

0 comments on commit 223eea9

Please sign in to comment.