Skip to content

Commit

Permalink
[#9] Add transationally-reserved codes to Country list
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Feb 4, 2015
1 parent feaf574 commit ef5404d
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 1 deletion.
2 changes: 1 addition & 1 deletion convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def add_code(code_text, country, withdrawn):

# Ensure that historic codes come after current codes
for country in countries.findall('country'):
if country.find('status').text == 'formerly-used':
if country.find('status').text in ['formerly-used', 'transitionally-reserved']:
add_code(country.find('alpha-2-code').text, country, country.find('validity-end-date').text)
add_code(country.find('alpha-4-code').text, country, country.find('validity-end-date').text)

Expand Down
112 changes: 112 additions & 0 deletions xml/Country.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2744,6 +2744,22 @@
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="2010-12-15">
<code>AN</code>
<name>
<narrative xml:lang="fr">Antilles n&#233;erlandaises (les&#160;) </narrative>
<narrative xml:lang="en">Netherlands Antilles</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="2010-12-15">
<code>ANHH</code>
<name>
<narrative xml:lang="fr">Antilles n&#233;erlandaises (les&#160;) </narrative>
<narrative xml:lang="en">Netherlands Antilles</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1981-05-15">
<code>BQ</code>
<name>
Expand All @@ -2760,6 +2776,22 @@
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1989-12-15">
<code>BU</code>
<name>
<narrative xml:lang="en">Burma</narrative>
<narrative xml:lang="fr">Birmanie</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1989-12-15">
<code>BUMM</code>
<name>
<narrative xml:lang="en">Burma</narrative>
<narrative xml:lang="fr">Birmanie</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1992-06-15">
<code>BY</code>
<name>
Expand All @@ -2776,6 +2808,22 @@
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="2006-09-26">
<code>CS</code>
<name>
<narrative xml:lang="en">Serbia and Montenegro</narrative>
<narrative xml:lang="fr">Serbie-et-Mont&#233;n&#233;gro</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="2006-09-26">
<code>CSXX</code>
<name>
<narrative xml:lang="en">Serbia and Montenegro</narrative>
<narrative xml:lang="fr">Serbie-et-Mont&#233;n&#233;gro</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1993-06-15">
<code>CS</code>
<name>
Expand Down Expand Up @@ -2952,6 +3000,22 @@
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1993-07-12">
<code>NT</code>
<name>
<narrative xml:lang="en">Neutral Zone</narrative>
<narrative xml:lang="fr">Zone neutre</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1993-07-12">
<code>NTHH</code>
<name>
<narrative xml:lang="en">Neutral Zone</narrative>
<narrative xml:lang="fr">Zone neutre</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1986-01-15">
<code>PC</code>
<name>
Expand Down Expand Up @@ -3032,6 +3096,22 @@
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="2002-05-20">
<code>TP</code>
<name>
<narrative xml:lang="en">East Timor</narrative>
<narrative xml:lang="fr">Timor oriental</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="2002-05-20">
<code>TPTL</code>
<name>
<narrative xml:lang="en">East Timor</narrative>
<narrative xml:lang="fr">Timor oriental</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1977-08-01">
<code>VD</code>
<name>
Expand Down Expand Up @@ -3080,6 +3160,38 @@
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="2003-07-23">
<code>YU</code>
<name>
<narrative xml:lang="fr">Yougoslavie</narrative>
<narrative xml:lang="en">Yugoslavia</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="2003-07-23">
<code>YUCS</code>
<name>
<narrative xml:lang="fr">Yougoslavie</narrative>
<narrative xml:lang="en">Yugoslavia</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1997-07-14">
<code>ZR</code>
<name>
<narrative xml:lang="en">Zaire</narrative>
<narrative xml:lang="fr">Za&#239;re</narrative>
</name>
<description/>
</codelist-item>
<codelist-item withdrawn="1997-07-14">
<code>ZRCD</code>
<name>
<narrative xml:lang="en">Zaire</narrative>
<narrative xml:lang="fr">Za&#239;re</narrative>
</name>
<description/>
</codelist-item>
</codelist-items>
</codelist>

0 comments on commit ef5404d

Please sign in to comment.