Skip to content

Commit 9184c9a

Browse files
tbmkarlicoss
authored andcommitted
Fix typos in docstrings
1 parent 264d9fc commit 9184c9a

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

orgparse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def load(path, env=None):
121121
Load org-mode document from a file.
122122
123123
:type path: str or file-like
124-
:arg path: Path to org file or file-like object of a org document.
124+
:arg path: Path to org file or file-like object of an org document.
125125
126126
:rtype: :class:`orgparse.node.OrgRootNode`
127127

orgparse/date.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def total_minutes(td):
1515

1616
def gene_timestamp_regex(brtype, prefix=None, nocookie=False):
1717
"""
18-
Generate timetamp regex for active/inactive/nobrace brace type
18+
Generate timestamp regex for active/inactive/nobrace brace type
1919
2020
:type brtype: {'active', 'inactive', 'nobrace'}
2121
:arg brtype:

orgparse/node.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def parse_heading_todos(heading, todo_candidates):
9797

9898
def parse_heading_priority(heading):
9999
"""
100-
Get priority and heading without priority field..
100+
Get priority and heading without priority field.
101101
102102
>>> parse_heading_priority('HEADING')
103103
('HEADING', None)
@@ -347,7 +347,7 @@ class OrgBaseNode(Sequence):
347347

348348
def __init__(self, env, index=None):
349349
"""
350-
Create a :class:`OrgBaseNode` object.
350+
Create an :class:`OrgBaseNode` object.
351351
352352
:type env: :class:`OrgEnv`
353353
:arg env: This will be set to the :attr:`env` attribute.
@@ -475,9 +475,9 @@ def get_parent(self, max_level=None):
475475
of the ancestor node to return. For example,
476476
``get_parent(max_level=0)`` returns a root node.
477477
478-
In general case, it specify a maximum level of the
478+
In the general case, it specify a maximum level of the
479479
desired ancestor node. If there is no ancestor node
480-
which level is equal to ``max_level``, this function
480+
whose level is equal to ``max_level``, this function
481481
try to find an ancestor node which level is smaller
482482
than ``max_level``.
483483
@@ -587,7 +587,7 @@ def children(self):
587587
>>> c2 is n4
588588
True
589589
590-
Note the difference to ``n1[1:]``, which returns the Node 3 also.:
590+
Note the difference to ``n1[1:]``, which returns the Node 3 also:
591591
592592
>>> (m1, m2, m3) = list(n1[1:])
593593
>>> m2 is n3
@@ -664,7 +664,7 @@ def _get_tags(self, inher=False):
664664
@property
665665
def tags(self):
666666
"""
667-
Tag of this and parents node.
667+
Tags of this and parent's node.
668668
669669
>>> from orgparse import loads
670670
>>> n2 = loads('''
@@ -1212,7 +1212,7 @@ def has_date(self):
12121212
@property
12131213
def repeated_tasks(self):
12141214
"""
1215-
Get repeated tasks marked DONE in a entry having repeater.
1215+
Get repeated tasks marked DONE in an entry having repeater.
12161216
12171217
:rtype: list of :class:`orgparse.date.OrgDateRepeatedTask`
12181218

0 commit comments

Comments
 (0)