Example #1
0
 def get_all_abbrs(self):
     return DEPT_ABBRS.get(self.abbr, [self.abbr])
Example #2
0
 def get_nice_abbr(abbr):
     """ replaces COMPSCI (correct abbreviation) with CS (common abbreviation) and the like """
     return DEPT_ABBRS.get(abbr.upper(), (abbr.upper(),))[0]