From 408ebc32367a468c9b54ab5ca96da2523ca43579 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Thu, 30 May 2019 13:16:59 +0200 Subject: [PATCH] Improved code quality. --- README.md | 14 +++++++------- README.rst | 2 +- benedict/metadata.py | 2 +- tests/test_dicts.py | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 8f4d155..ebadea3 100644 --- a/README.md +++ b/README.md @@ -8,21 +8,21 @@ [![License](https://img.shields.io/pypi/l/python-benedict.svg)](https://img.shields.io/pypi/l/python-benedict.svg) # python-benedict -python-benedict is the Python dictionary for humans dealing with evil data. +python-benedict is the Python dictionary for humans dealing with evil/complex data. ## Features -- Full **keypath** support *(using the dot syntax)* -- Many **utility methods** to retrieve data as needed *(all methods listed below)* -- 100% **backward-compatible** *(you can replace existing dicts without pain)* +- Full **keypath** support *(using the dot syntax)* +- Many **utility methods** to retrieve data as needed *(all methods listed below)* +- 100% **backward-compatible** *(you can replace existing dicts without pain)* ## Requirements -- Python 3.4, 3.5, 3.6, 3.7 +- Python 3.4, 3.5, 3.6, 3.7 ## Installation -- Run `pip install python-benedict` +- Run `pip install python-benedict` ## Testing -- Run `tox` / `python setup.py test` +- Run `tox` / `python setup.py test` ## Usage `benedict` is a dict subclass, so it is possible to use it as a normal dict *(you can just cast an existing dict)*. diff --git a/README.rst b/README.rst index 2f0da07..75b18a7 100644 --- a/README.rst +++ b/README.rst @@ -5,7 +5,7 @@ python-benedict =============== python-benedict is the Python dictionary for humans dealing with -evil data. +evil/complex data. Features -------- diff --git a/benedict/metadata.py b/benedict/metadata.py index 7714f53..b8aa176 100644 --- a/benedict/metadata.py +++ b/benedict/metadata.py @@ -2,7 +2,7 @@ __author__ = 'Fabio Caccamo' __copyright__ = 'Copyright (c) 2019 Fabio Caccamo' -__description__ = 'python-benedict is the Python dictionary for humans dealing with evil data.' +__description__ = 'python-benedict is the Python dictionary for humans dealing with evil/complex data.' __license__ = 'MIT' __title__ = 'benedict' __version__ = '0.2.0' \ No newline at end of file diff --git a/tests/test_dicts.py b/tests/test_dicts.py index 7311e78..0f09328 100644 --- a/tests/test_dicts.py +++ b/tests/test_dicts.py @@ -140,7 +140,7 @@ class BenedictKeypathDictTestCase(unittest.TestCase): } b = benedict(d) with self.assertRaises(KeyError): - val = b['b'] + b['b'] def test_getitem_with_1_not_str_key(self): d = { @@ -152,7 +152,7 @@ class BenedictKeypathDictTestCase(unittest.TestCase): self.assertEqual(b[None], None) self.assertEqual(b[False], False) with self.assertRaises(KeyError): - val = b[True] + b[True] self.assertEqual(b[0], 0) def test_get_with_2_valid_keys(self): @@ -190,7 +190,7 @@ class BenedictKeypathDictTestCase(unittest.TestCase): } b = benedict(d) with self.assertRaises(KeyError): - val = b['b.a'] + b['b.a'] def test_get_with_3_valid_keys(self): d = { @@ -235,7 +235,7 @@ class BenedictKeypathDictTestCase(unittest.TestCase): } b = benedict(d) with self.assertRaises(KeyError): - val = b['c.b.a'] + b['c.b.a'] def test_has_with_1_key(self): d = {