1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2026-04-26 21:04:16 +02:00

separate kv and ini parsers. add fake top-level section in ini files that are missing it.

This commit is contained in:
Kelly Brazil
2023-01-03 12:11:05 -08:00
parent ae6248227b
commit bb65ec380b
7 changed files with 87 additions and 22 deletions
+1 -1
View File
@@ -92,4 +92,4 @@ Returns:
### Parser Information
Compatibility: linux, darwin, cygwin, win32, aix, freebsd
Version 1.8 by Kelly Brazil (kellyjonbrazil@gmail.com)
Version 2.0 by Kelly Brazil (kellyjonbrazil@gmail.com)
+2 -4
View File
@@ -65,8 +65,6 @@ def parse(data, raw=False, quiet=False)
Main text parsing function
Note: this is just a wrapper for jc.parsers.ini
Parameters:
data: (string) text data to parse
@@ -75,9 +73,9 @@ Parameters:
Returns:
Dictionary representing the key/value file
Dictionary representing the ini file
### Parser Information
Compatibility: linux, darwin, cygwin, win32, aix, freebsd
Version 1.2 by Kelly Brazil (kellyjonbrazil@gmail.com)
Version 2.0 by Kelly Brazil (kellyjonbrazil@gmail.com)