Added compatible idioms for configparser and queue to support both python2 and python3
This commit is contained in:
parent
823fda9c97
commit
c4c1a10f05
2 changed files with 5 additions and 5 deletions
|
@ -6,7 +6,7 @@ message handlers are defined and some support for sending messages.
|
|||
"""
|
||||
|
||||
import argparse
|
||||
import configparser
|
||||
from configparser import ConfigParser
|
||||
import logging
|
||||
import sys
|
||||
import threading
|
||||
|
@ -107,7 +107,7 @@ def get_merged_config(filename):
|
|||
if args.configfile is not None:
|
||||
filename = args.configfile
|
||||
del args.configfile
|
||||
cfg = configparser.ConfigParser(defaults)
|
||||
cfg = ConfigParser(defaults)
|
||||
cfg.read(filename)
|
||||
|
||||
section = "core-daemon"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue