openSUSE-release-tools/dist/ci/osc-credentials
Steve Kowalik 326a087168 Switch to python3 shebang
With the python shebang remaining as Python 2, switch the scripts to
using Python 3. This also allows us to clean up some imports.
2021-02-03 14:53:42 +11:00

14 lines
262 B
Python
Executable File

#!/usr/bin/python3
try:
from osc import conf
except:
import sys
sys.exit()
apiurl = conf.config['apiurl']
cp = conf.get_configParser()
for key in ('apiurl', 'user', 'pass', 'email'):
print('{}="{}"'.format(key, cp.get(apiurl, key, raw=True)))