From 9eda19d6cc2da3c4e179dd4ab475a8f86852a038 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 15 May 2018 12:23:10 -0700 Subject: [PATCH] zulip_botserver: Get rid of old six.moves for configparser. --- zulip_botserver/zulip_botserver/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zulip_botserver/zulip_botserver/server.py b/zulip_botserver/zulip_botserver/server.py index 03db830..6a5a334 100644 --- a/zulip_botserver/zulip_botserver/server.py +++ b/zulip_botserver/zulip_botserver/server.py @@ -1,3 +1,4 @@ +import configparser import os import sys import json @@ -7,7 +8,6 @@ from flask import Flask, request from importlib import import_module from typing import Any, Dict, Mapping, Union, List, Optional from werkzeug.exceptions import BadRequest -from six.moves.configparser import SafeConfigParser from zulip import Client 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)) if not os.path.isfile(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) for section in parser.sections():