<s> import andle . http <EOL> from xml . dom import minidom <EOL> JCENTER_URL = "<STR_LIT>" <EOL> def load ( name , url = JCENTER_URL ) : <EOL> request = andle . http . request ( url + name . replace ( "<STR_LIT:.>" , "<STR_LIT:/>" ) . replace ( "<STR_LIT::>" , "<STR_LIT:/>" ) + "<STR_LIT>" ) <EOL> try : <EOL> DOMTree = minidom . parse ( request ) <EOL> collection = DOMTree . documentElement <EOL> versioning = collection . getElementsByTagName ( "<STR_LIT>" ) [ <NUM_LIT:0> ] <EOL> latest = versioning . getElementsByTagName ( "<STR_LIT>" ) [ <NUM_LIT:0> ] <EOL> version = latest . childNodes [ <NUM_LIT:0> ] . data <EOL> return version <EOL> except AttributeError : <EOL> print ( "<STR_LIT>" + name ) <EOL> return None </s>
