@_unique
def uninstallation_paths(dist):
 from pip.req import FakeFile
 r = csv.reader(FakeFile(dist.get_metadata_lines('RECORD')))
 for row in r:
  path = os.path.join(dist.location, row[0])
  (yield path)
  if path.endswith('.py'):
   (dn, fn) = os.path.split(path)
   base = fn[:(-3)]
   path = os.path.join(dn, (base + '.pyc'))
   (yield path)

@ _unique def uninstallation_paths ( dist ) : from pip . req import FakeFile r = csv . reader ( FakeFile ( dist . get_metadata_lines ( 'RECORD' ) ) ) for row in r : path = os . path . join ( dist . location , row [ 0 ] ) ( yield path ) if path . endswith ( '.py' ) : ( dn , fn ) = os . path . split ( path ) base = fn [ : ( - 3 ) ] path = os . path . join ( dn , ( base + '.pyc' ) ) ( yield path )
yield all the uninstallation paths for dist based on record-without- .