def GetPrintableStrs(namespace, kinds):
 namespace_str = (namespace or '')
 if kinds:
  kind_str = ('all %s entities' % ', '.join(kinds))
 else:
  kind_str = ''
 return (namespace_str, kind_str)

def GetPrintableStrs ( namespace , kinds ) : namespace_str = ( namespace or '' ) if kinds : kind_str = ( 'all %s entities' % ', ' . join ( kinds ) ) else : kind_str = '' return ( namespace_str , kind_str )
returns tuples describing affected kinds and namespace .