Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct spelling mistakes #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ fi
if get_path gitchangelog >/dev/null; then
gitchangelog > CHANGELOG.rst
if [ "$?" != 0 ]; then
echo "Changelog NOT generated. An error occured while running \`\`gitchangelog\`\`." >&2
echo "Changelog NOT generated. An error occurred while running \`\`gitchangelog\`\`." >&2
else
echo "Changelog generated."
fi
Expand Down
10 changes: 5 additions & 5 deletions src/gitchangelog/gitchangelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def set_cwd(directory):
def format_last_exception(prefix=" | "):
"""Format the last exception for display it in tests.

This allows to raise custom exception, without loosing the context of what
This allows to raise custom exception, without losing the context of what
caused the problem in the first place:

>>> def f():
Expand All @@ -300,11 +300,11 @@ def format_last_exception(prefix=" | "):
... f()
... except Exception:
... formated_exception = format_last_exception()
... raise ValueError('Oups, an error occured:\\n%s'
... raise ValueError('Oups, an error occurred:\\n%s'
... % formated_exception)
Traceback (most recent call last):
...
ValueError: Oups, an error occured:
ValueError: Oups, an error occurred:
| Traceback (most recent call last):
...
| Exception: Something terrible happened
Expand Down Expand Up @@ -1185,7 +1185,7 @@ def tags(self, contains=None):
tags = self.git.tag(contains=contains).split("\n")
else:
tags = self.git.tag().split("\n")
## Should we use new version name sorting ? refering to :
## Should we use new version name sorting ? referring to :
## ``git tags --sort -v:refname`` in git version >2.0.
## Sorting and reversing with command line is not available on
## git version <2.0
Expand Down Expand Up @@ -1229,7 +1229,7 @@ def mk_commit(dct):
values = plog.stdout.read("\x00")

try:
while True: ## next(values) will eventualy raise a StopIteration
while True: ## next(values) will eventually raise a StopIteration
yield mk_commit(dict([(key, next(values))
for key in GIT_FORMAT_KEYS]))
finally:
Expand Down