parameters: (pieces)
return_statement: return rendered
docstring: TAG[.postDISTANCE[.dev0]] .
  
      The ".dev0" means dirty.
  
      Eexceptions:
      1: no tags. 0.postDISTANCE[.dev0]
docstring_summary: TAG[.postDISTANCE[.dev0]] .
docstring_tokens: TAG [ . postDISTANCE [ . dev0 ]] .
function: def render_pep440_old(pieces):
      """TAG[.postDISTANCE[.dev0]] .
  
      The ".dev0" means dirty.
  
      Eexceptions:
      1: no tags. 0.postDISTANCE[.dev0]
      """
      if pieces["closest-tag"]:
          rendered = pieces["closest-tag"]
          if pieces["distance"] or pieces["dirty"]:
              rendered += ".post%d" % pieces["distance"]
              if pieces["dirty"]:
                  rendered += ".dev0"
      else:
          # exception #1
          rendered = "0.post%d" % pieces["distance"]
          if pieces["dirty"]:
              rendered += ".dev0"
      return rendered
function_tokens: def render_pep440_old ( pieces ) : if pieces [ "closest-tag" ] : rendered = pieces [ "closest-tag" ] if pieces [ "distance" ] or pieces [ "dirty" ] : rendered += ".post%d" % pieces [ "distance" ] if pieces [ "dirty" ] : rendered += ".dev0" else : # exception #1 rendered = "0.post%d" % pieces [ "distance" ] if pieces [ "dirty" ] : rendered += ".dev0" return rendered