Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
SamGRosen committed Jul 28, 2018
1 parent b3e81d6 commit 85806e6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
10 changes: 6 additions & 4 deletions README.rst
Expand Up @@ -8,12 +8,14 @@ easy to use API for the simple and extensive use case.
:target: https://coveralls.io/github/SamGRosen/diary?branch=master


.. image:: https://img.shields.io/pypi/pyversions/diary.svg?maxAge=2592000
:target: https://pypi.python.org/pypi/diary/
.. image:: https://img.shields.io/pypi/pyversions/diary.svg
:alt: PyPI - Python Version
:target: https://pypi.org/project/diary/


.. image:: https://img.shields.io/pypi/v/diary.svg?maxAge=2592000
:target: https://pypi.python.org/pypi/diary/
.. image:: https://img.shields.io/pypi/v/diary.svg
:alt: PyPI
:target: https://pypi.org/project/diary/


.. contents:: Table of Contents
Expand Down
6 changes: 3 additions & 3 deletions diary/diary.py
Expand Up @@ -60,11 +60,11 @@ def __init__(self, path, file_name="diary.txt", db_name="diary.db",
elif tail == file_name or ext[1:] in ('txt', 'text', 'log'):
self.log_file = codecs.open(path, mode='a+', buffering=1, encoding=self.encoding)
else:
raise ValueError("Could not resolve to database or text file {}".format(
raise ValueError("Could not resolve to database or text file: {}".format(
path))
else:
raise ValueError("Could not handle path: {} | {}".format(
path, "Was not found a directory or file"))
raise ValueError("Could not handle path: {} | did not find a directory or file".format(
path))
else:
try:
_, ext = os.path.splitext(path)
Expand Down
2 changes: 1 addition & 1 deletion diary/logdb.py
Expand Up @@ -50,7 +50,7 @@ def log(self, event):
VALUES(?, ?, ?)''',
(event.dt, event.level_str, event.info))
except sqlite3.ProgrammingError:
raise ValueError("""diary does not support logging unicode strings into a database in ython2.
raise ValueError("""diary does not support logging unicode strings into a database in Python2.
To avoid this:
1. Ensure your strings are converted to the 'str' type before logging
2. Write your own implementation of DiaryDB that can handle unicode
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -11,7 +11,7 @@
setup(name='diary',
packages=['diary'],
scripts=['diary/bin/diary'],
version='0.1.5',
version='0.1.6',
description='Async Logging',
long_description=long_description,
author='Sam Rosen',
Expand Down

0 comments on commit 85806e6

Please sign in to comment.