parameters: (unfiltered)
docstring: From the unfiltered (mangled) output of dpkg-gensymbols, returns a usable patch
docstring_summary: From the unfiltered (mangled) output of dpkg-gensymbols, returns a usable patch
docstring_tokens: From the unfiltered ( mangled ) output of dpkg - gensymbols returns a usable patch
function: def new_lines_from_unfiltered(unfiltered):
      '''From the unfiltered (mangled) output of dpkg-gensymbols, returns a usable patch'''
      result = Run(['c++filt'], stdin=unfiltered)
      result.assert_success()
      searched = re.findall('^\+ (.+::.+) ([\.\d]+)$', result.stdout, flags=re.MULTILINE)
      if searched:
          filtered = [' (c++)"' + symbol + '" ' + version + '\n' for symbol, version in searched]
          return list(set(filtered))
      else:
          return None
function_tokens: def new_lines_from_unfiltered ( unfiltered ) : result = Run ( [ 'c++filt' ] , stdin = unfiltered ) result . assert_success ( ) searched = re . findall ( '^\+ (.+::.+) ([\.\d]+)$' , result . stdout , flags = re . MULTILINE ) if searched : filtered = [ ' (c++)"' + symbol + '" ' + version + '\n' for symbol , version in searched ] return list ( set ( filtered ) ) else : return None