mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
doc update
This commit is contained in:
@ -16,7 +16,10 @@ compatibility(mod_name, compatible)
|
||||
```
|
||||
Checks for the parser's compatibility with the running OS platform.
|
||||
|
||||
compatible options:
|
||||
Arguments:
|
||||
|
||||
linux, darwin, cygwin, win32, aix, freebsd
|
||||
mod_name (string) __name__ of the calling module
|
||||
compatible (list) sys.platform name(s) compatible with the parser
|
||||
compatible options:
|
||||
linux, darwin, cygwin, win32, aix, freebsd
|
||||
|
||||
|
@ -23,10 +23,13 @@ def error_message(message):
|
||||
|
||||
def compatibility(mod_name, compatible):
|
||||
"""Checks for the parser's compatibility with the running OS platform.
|
||||
|
||||
Arguments:
|
||||
|
||||
compatible options:
|
||||
|
||||
linux, darwin, cygwin, win32, aix, freebsd
|
||||
mod_name (string) __name__ of the calling module
|
||||
compatible (list) sys.platform name(s) compatible with the parser
|
||||
compatible options:
|
||||
linux, darwin, cygwin, win32, aix, freebsd
|
||||
"""
|
||||
if sys.platform not in compatible:
|
||||
mod = mod_name.split('.')[-1]
|
||||
|
Reference in New Issue
Block a user