def close_cn(cn=None):
 if cn:
  cn.close()
  print(u'Closed connection: {0}.'.format(cn.dsn))

def close_cn ( cn = None ) : if cn : cn . close ( ) print ( u'Closed connection: {0}.' . format ( cn . dsn ) )
close connection .