Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions iniparse/ini.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Access and/or modify INI files

* Compatiable with ConfigParser
* Compatible with ConfigParser
* Preserves order of sections & options
* Preserves comments/blank lines/etc
* More conveninet access to data
* More convenient access to data

Example:

Expand Down
2 changes: 1 addition & 1 deletion iniparse/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def tidy(cfg: compat.RawConfigParser):
"""Clean up blank lines.

This functions makes the configuration look clean and
This function makes the configuration look clean and
handwritten - consecutive empty lines and empty lines at
the start of the file are removed, and one is guaranteed
to be at the end of the file.
Expand Down
8 changes: 4 additions & 4 deletions tests/test_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ def test_basic(self):
# Make sure the right things happen for remove_option();
# added to include check for SourceForge bug #123324:
self.assertTrue(cf.remove_option('Foo Bar', 'foo'),
"remove_option() failed to report existance of option")
"remove_option() failed to report existence of option")
self.assertFalse(cf.has_option('Foo Bar', 'foo'),
"remove_option() failed to remove option")
self.assertFalse(cf.remove_option('Foo Bar', 'foo'),
"remove_option() failed to report non-existance of option"
"remove_option() failed to report non-existence of option"
" that was removed")

self.assertRaises(ConfigParser.NoSectionError,
Expand Down Expand Up @@ -471,7 +471,7 @@ def test_read_returns_file_list(self):
file1 = test_support.findfile("configdata/cfgparser.1")
# check when we pass a mix of readable and non-readable files:
cf = self.newconfig()
parsed_files = cf.read([file1, "nonexistant-file"])
parsed_files = cf.read([file1, "nonexistent-file"])
self.assertEqual(parsed_files, [file1])
self.assertEqual(cf.get("Foo Bar", "foo"), "newbar")
# check when we pass only a filename:
Expand All @@ -481,7 +481,7 @@ def test_read_returns_file_list(self):
self.assertEqual(cf.get("Foo Bar", "foo"), "newbar")
# check when we pass only missing files:
cf = self.newconfig()
parsed_files = cf.read(["nonexistant-file"])
parsed_files = cf.read(["nonexistent-file"])
self.assertEqual(parsed_files, [])
# check when we pass no files:
cf = self.newconfig()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_assignment(self):
self.assertEqual(c.get('foo', 'bar'), 'a')
self.assertEqual(c.get('foo', 'Bar'), 'b')

def test_dyanamic(self):
def test_dynamic(self):
"""
:id: 30b18b29-2e11-43e1-9615-2739021c4910
:title: Dynamically changing optionxform affects key resolution
Expand Down
Loading