def write_info_refs(refs, store):
 for (name, sha) in sorted(refs.items()):
  if (name == 'HEAD'):
   continue
  try:
   o = store[sha]
  except KeyError:
   continue
  peeled = store.peel_sha(sha)
  (yield (((o.id + ' DCTB ') + name) + '\n'))
  if (o.id != peeled.id):
   (yield ((((peeled.id + ' DCTB ') + name) + ANNOTATED_TAG_SUFFIX) + '\n'))

def write_info_refs ( refs , store ) : for ( name , sha ) in sorted ( refs . items ( ) ) : if ( name == 'HEAD' ) : continue try : o = store [ sha ] except KeyError : continue peeled = store . peel_sha ( sha ) ( yield ( ( ( o . id + ' DCTB ' ) + name ) + '\n' ) ) if ( o . id != peeled . id ) : ( yield ( ( ( ( peeled . id + ' DCTB ' ) + name ) + ANNOTATED_TAG_SUFFIX ) + '\n' ) )
generate info refs .