mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
docstring update
This commit is contained in:
@ -264,7 +264,10 @@ def versiontext():
|
|||||||
|
|
||||||
|
|
||||||
def yaml_out(data, pretty=False, env_colors=None, mono=False, piped_out=False, ascii_only=False):
|
def yaml_out(data, pretty=False, env_colors=None, mono=False, piped_out=False, ascii_only=False):
|
||||||
"""Return a YAML formatted string"""
|
"""
|
||||||
|
Return a YAML formatted string. String may include color codes. If the
|
||||||
|
YAML library is not installed, output will fall back to JSON with a
|
||||||
|
warning message to STDERR"""
|
||||||
# make ruamel.yaml import optional
|
# make ruamel.yaml import optional
|
||||||
try:
|
try:
|
||||||
from ruamel.yaml import YAML
|
from ruamel.yaml import YAML
|
||||||
|
Reference in New Issue
Block a user