With the python shebang remaining as Python 2, switch the scripts to using Python 3. This also allows us to clean up some imports.
14 lines
262 B
Python
Executable File
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)))
|