mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
rename state class to _state
This commit is contained in:
@ -69,12 +69,6 @@ info()
|
|||||||
```
|
```
|
||||||
Provides parser metadata (version, author, etc.)
|
Provides parser metadata (version, author, etc.)
|
||||||
|
|
||||||
## state
|
|
||||||
```python
|
|
||||||
state()
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## parse
|
## parse
|
||||||
```python
|
```python
|
||||||
parse(data, raw=False, quiet=False)
|
parse(data, raw=False, quiet=False)
|
||||||
|
@ -108,7 +108,7 @@ def _process(proc_data):
|
|||||||
return proc_data
|
return proc_data
|
||||||
|
|
||||||
|
|
||||||
class state:
|
class _state:
|
||||||
os_detected = None
|
os_detected = None
|
||||||
linux = None
|
linux = None
|
||||||
bsd = None
|
bsd = None
|
||||||
@ -461,7 +461,7 @@ def parse(data, raw=False, quiet=False):
|
|||||||
|
|
||||||
Dictionary. Raw or processed structured data.
|
Dictionary. Raw or processed structured data.
|
||||||
"""
|
"""
|
||||||
s = state()
|
s = _state()
|
||||||
|
|
||||||
if not quiet:
|
if not quiet:
|
||||||
jc.utils.compatibility(__name__, info.compatible)
|
jc.utils.compatibility(__name__, info.compatible)
|
||||||
|
Reference in New Issue
Block a user