1. Dan Connolly
  2. quacken

Commits

conn...@dirk.w3.org  committed 5621849

some places in canada

  • Participants
  • Parent commits c3915ce
  • Branches default

Comments (0)

Files changed (1)

File trxht.py

View file
  • Ignore whitespace
 import trxtsv
 from trxtsv import isoDate, numField
 
-from places import States, Cities
+from places import Regions, Localities
 
 def main(argv):
 
 	    w('<span class="adr">' \
 	      '<span class="locality">%s</span> ' \
 	      '<abbr class="region" title="%s">%s</abbr>' % \
-	      (locality, States[region], region))
+	      (locality, Regions[region], region))
 	    if postcode:
 		w(' <u class="postal-code">%s</u>' % postcode)
 	    w('</span>')
 
 
 PlaceExp = dict([(st, sre.compile(mkregex(st, cities))) \
-		 for st, cities in Cities])
+		 for st, cities in Localities])
 
 def citySt(desc):
     """