diff --git a/dib-elements/initialize-urandom/static/usr/local/bin/initialize-urandom.py b/dib-elements/initialize-urandom/static/usr/local/bin/initialize-urandom.py index 1cb449d..fa21529 100755 --- a/dib-elements/initialize-urandom/static/usr/local/bin/initialize-urandom.py +++ b/dib-elements/initialize-urandom/static/usr/local/bin/initialize-urandom.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2016 Red Hat, Inc. # diff --git a/dib-elements/openstack-repos/extra-data.d/50-create-repo-list b/dib-elements/openstack-repos/extra-data.d/50-create-repo-list index 73c7bbe..9e7f78e 100755 --- a/dib-elements/openstack-repos/extra-data.d/50-create-repo-list +++ b/dib-elements/openstack-repos/extra-data.d/50-create-repo-list @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright (C) 2011-2013 OpenStack Foundation # @@ -18,15 +18,8 @@ import os import yaml - -try: - from six.moves.urllib.request import urlopen -except ImportError: - from urllib.request import urlopen -try: - from six.moves.urllib.error import URLError -except ImportError: - from urllib.request import URLError +from urllib.request import urlopen +from urllib.request import URLError URL = ('https://opendev.org/openstack/project-config/' 'raw/gerrit/projects.yaml')