18

I'm currently removing hard-coded DB creds in our modules which is in production. I've thought, this format is the worst:

db_dsn = 'db_dsn_conn_1'
conn = pyodbc.connect('DSN=%s'%(db_dsn))

Behold!!

conn = pyodbc.connect('DSN=db_dsn_conn_1')

Comments
Add Comment