#!/usr/bin/env python3
import sys
from configparser import ConfigParser
from io import StringIO


CONFIG = '''
[Box]
box.active = false
resolution_tracker.active = true
box.api_key = 
box.api_secret = 
box.job_interval = 480
box.max_attempts = 6
box.users = 

[Google]
google.active = true
google.job_interval = 480
google.users = <useremail>
google.key_file_name = <key_file>
google.service_account_id = <account_id>
'''

parser = ConfigParser()
parser.read(StringIO(CONFIG))
parser.write(sys.stdout, space_around_delimiters=False)
 posted on 2022-04-24 22:06  xibuhaohao  阅读(343)  评论(0)    收藏  举报