Turn Locations into dicts less often

This commit is contained in:
Calen Pennington
2013-09-19 13:07:10 -04:00
parent d3dc9d27a8
commit cfa2b27f26

View File

@@ -204,7 +204,7 @@ class Location(_LocationBase):
"""
Return a string containing the URL for this location
"""
url = "{tag}://{org}/{course}/{category}/{name}".format(**self.dict())
url = "{0.tag}://{0.org}/{0.course}/{0.category}/{0.name}".format(self)
if self.revision:
url += "@" + self.revision
return url