def as_published(location):
 return location.replace(revision=MongoRevisionKey.published)

def as_published ( location ) : return location . replace ( revision = MongoRevisionKey . published )
returns the location that is the published version for location .