"""
import argparse
-import ConfigParser
+
+try:
+ import ConfigParser
+except ImportError:
+ import configparser as ConfigParser
+
import logging
import os
import yaml
try:
auth = GerritAuth(url=gerrit_url)
- except ValueError, err:
+ except ValueError as err:
logging.error("%s for %s", err, gerrit_url)
quit(1)
restapi = GerritRestAPI(url=gerrit_url, auth=auth)