summaryrefslogtreecommitdiffstats
path: root/releases/scripts/create_branch.py
diff options
context:
space:
mode:
Diffstat (limited to 'releases/scripts/create_branch.py')
-rw-r--r--releases/scripts/create_branch.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/releases/scripts/create_branch.py b/releases/scripts/create_branch.py
index 8de130972..362aaaf99 100644
--- a/releases/scripts/create_branch.py
+++ b/releases/scripts/create_branch.py
@@ -12,7 +12,12 @@ Create Gerrit Branchs
"""
import argparse
-import ConfigParser
+
+try:
+ import ConfigParser
+except ImportError:
+ import configparser as ConfigParser
+
import logging
import os
import yaml
@@ -105,7 +110,7 @@ def main():
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)