zulip_botserver: Get rid of old six.moves for configparser.

This commit is contained in:
Tim Abbott 2018-05-15 12:23:10 -07:00
parent 6bbdc7d9d0
commit 9eda19d6cc

View file

@ -1,3 +1,4 @@
import configparser
import os import os
import sys import sys
import json import json
@ -7,7 +8,6 @@ from flask import Flask, request
from importlib import import_module from importlib import import_module
from typing import Any, Dict, Mapping, Union, List, Optional from typing import Any, Dict, Mapping, Union, List, Optional
from werkzeug.exceptions import BadRequest from werkzeug.exceptions import BadRequest
from six.moves.configparser import SafeConfigParser
from zulip import Client from zulip import Client
from zulip_bots.custom_exceptions import ConfigValidationError from zulip_bots.custom_exceptions import ConfigValidationError
@ -22,7 +22,7 @@ def read_config_file(config_file_path: str) -> None:
config_file_path = os.path.abspath(os.path.expanduser(config_file_path)) config_file_path = os.path.abspath(os.path.expanduser(config_file_path))
if not os.path.isfile(config_file_path): if not os.path.isfile(config_file_path):
raise IOError("Could not read config file {}: File not found.".format(config_file_path)) raise IOError("Could not read config file {}: File not found.".format(config_file_path))
parser = SafeConfigParser() parser = configparser.ConfigParser()
parser.read(config_file_path) parser.read(config_file_path)
for section in parser.sections(): for section in parser.sections():