def log_dep(depmsg):
 try:
  depmsg = str(depmsg)
 except Exception as e:
  depmsg = str(e)
 for line in depmsg.splitlines():
  log.msg(('[DP] %s' % line))

def log_dep ( depmsg ) : try : depmsg = str ( depmsg ) except Exception as e : depmsg = str ( e ) for line in depmsg . splitlines ( ) : log . msg ( ( '[DP] %s' % line ) )
prints a deprecation message .