# HG changeset patch # User greg # Date 1598464213 14400 # Node ID c34d08494c35cb567e69611795949866fc46fad2 # Parent 852b9fd0e3cd7032f962536d74cecfb995dad5b3 Uploaded diff -r 852b9fd0e3cd -r c34d08494c35 update_stag_database.py --- a/update_stag_database.py Tue Nov 19 09:36:05 2019 -0500 +++ b/update_stag_database.py Wed Aug 26 13:50:13 2020 -0400 @@ -3,17 +3,18 @@ import argparse import datetime -import dateutil.parser import os -import psycopg2 -import string import subprocess import sys +import dateutil.parser + +import psycopg2 + from six.moves import configparser +from sqlalchemy import MetaData from sqlalchemy import create_engine -from sqlalchemy import MetaData from sqlalchemy.engine.url import make_url now = datetime.datetime.utcnow @@ -42,7 +43,7 @@ config_parser.read(config_file) for key, value in config_parser.items(section): if section == 'defaults': - d[string.upper(key)] = value + d[key.upper()] = value else: d[key] = value return d