~evfool/software-properties/trim-source-comment

« back to all changes in this revision

Viewing changes to softwareproperties/CountryInformation.py

  • Committer: Michael Vogt
  • Date: 2013-03-12 08:34:29 UTC
  • mfrom: (834.1.1 software-properties)
  • Revision ID: michael.vogt@ubuntu.com-20130312083429-kcoojr8qqjl4c8aq
mergedĀ lp:~fourdollars/software-properties/fix-1138121-a-typo-in-CountryInformation.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
      et = ElementTree(file=fname)
34
34
      it = et.getiterator('iso_3166_entry')
35
35
      for elm in it:
36
 
        if "common-name" in elm.attrib:
 
36
        if "common_name" in elm.attrib:
37
37
          descr = elm.attrib["common_name"]
38
38
        else:
39
39
          descr = elm.attrib["name"]