Barry Warsaw
aef8371acb
Added the 7 new top level domains, and reworded the nameorgs output.
...
Not sure this is better in all cases.
parse(): Fixed a bug in the output; the dict is referred to in the
code as `countries' not `country'. Also added no-case-fold for the
string "U.S." since the Virgin Islands name no longer wraps those in
parentheses.
main(): Fixed the argument parsing to agree with the docstring, i.e.
--outputdict instead of --output.
In the module docstring:
- updated my email address
- we don't need to explain about Python 1.5 regexps <wink>
We also don't need to wrap the import of re with a try/except.
Other style fixes:
- untabification
- revert back to <> style everywhere (and consistently)
2002-06-07 15:48:52 +00:00
Walter Dörwald
a4c2b2470f
Apply diff2.txt from SF patch http://www.python.org/sf/565471
...
This patch replaces string module functions with string
methods in the Tools/world/world scripts.
It also updates two outdated URLs and the countrycodes
dictionary.
It fixes a bug where result of string.find() was checked
for truth instead of compared with -1.
It also replaces <> with != in two spots.
2002-06-07 14:47:20 +00:00
Barry Warsaw
a20fdcdd14
Eugene Dvurechenski <jno@glas.net> says:
...
there is "su" top level domain still maintained in ex-USSR. at
least "*.msk.su" zone (Moscow, USSR) is still in use.
1999-05-26 04:02:18 +00:00
Barry Warsaw
c0ef565cdf
D.M. Pick gives me a more accurate distillation of his `uk' explanation :-)
1998-12-29 02:52:11 +00:00
Barry Warsaw
a2b38030d6
Update on history of `uk' top level, greatly condensed from David
...
Pick's emailed account.
1998-12-27 20:08:49 +00:00
Barry Warsaw
88604056c5
"Author" -> "Contact"
1998-12-14 21:36:40 +00:00
Barry Warsaw
08833f2a6d
intermediate
1998-12-05 22:19:06 +00:00
Barry Warsaw
e1425d6a33
Fixed some bugs
1998-12-05 22:07:24 +00:00
Barry Warsaw
93ec4cc6f4
Fixed typos in --dump
1998-12-05 21:15:41 +00:00
Barry Warsaw
ff45d54f31
resolve(): Improved use of a/an, suggested by Tino Wildenhain
...
<cdtv@amigager.de>.
1998-10-02 14:14:39 +00:00
Barry Warsaw
55f0aabe88
example output is different
1998-03-13 18:33:34 +00:00
Barry Warsaw
0eae830dec
Typos in the docstring fixed by Detlef Lannert
...
<lannert@uni-duesseldorf.de>
1998-03-13 18:27:12 +00:00
Barry Warsaw
fb34c92628
Added URL for UK
1998-03-12 14:05:37 +00:00
Barry Warsaw
844e664e9d
Added a hack to deal with common practice 'uk' for United Kingdom
1998-03-12 13:15:28 +00:00
Barry Warsaw
521b8e1cd8
Use RCS revisions
1998-03-11 16:53:21 +00:00
Barry Warsaw
c0b965b81b
Updated the docstring
1998-03-11 16:50:31 +00:00
Barry Warsaw
d2c210df62
Added reverse lookup
1998-03-11 16:46:04 +00:00
Barry Warsaw
90136b08b6
Only parsing requires Python 1.5
1997-12-04 19:44:30 +00:00
Barry Warsaw
00727b0022
Updated world codes with latest iso3166 codes
1997-12-04 19:42:36 +00:00
Barry Warsaw
9efdef1d39
Added parsing of ISO 3166 files
1997-12-04 19:35:25 +00:00
Barry Warsaw
3ffc503682
Removed the USA'isms that aren't really true
1996-11-20 18:43:05 +00:00
Barry Warsaw
7081a69b24
/usr/bin/env is slightly more portable
1996-11-20 15:19:10 +00:00
Barry Warsaw
00bf8efe0b
Added a few meta info
1996-11-20 15:17:50 +00:00
Barry Warsaw
2a6e68f693
Output original address
1996-11-19 17:59:07 +00:00
Barry Warsaw
de0e8f763b
Updated country codes as per ISO3166 10-Feb-1994
1996-11-18 23:22:34 +00:00
Barry Warsaw
cb2b672015
implementation complete. need to update country codes
1996-11-18 22:57:43 +00:00
Barry Warsaw
3a7212c86a
Added `ru' --> Russia
1996-11-18 22:03:36 +00:00
Barry Warsaw
f6d53448e5
A rewrite for better Python-ish style
1996-11-18 21:26:56 +00:00
Barry Warsaw
6a9df7a86c
updated comments
1995-06-15 15:56:34 +00:00
Barry Warsaw
268a39fb84
converted to python
1995-06-15 15:54:16 +00:00
Barry Warsaw
52c8b26454
Use /depot/gnu/plat/bin/perl
1994-12-05 23:30:59 +00:00
Barry Warsaw
9702c4bde0
changed script interpreter
1994-10-06 15:40:37 +00:00
Barry Warsaw
138d72f64b
point perl to ~/bin/perl
1994-09-23 16:10:35 +00:00
Barry Warsaw
16c40cdf61
small usage note change
1994-07-25 21:58:11 +00:00
Barry Warsaw
b5ddae7388
small change in message
1994-07-25 21:57:27 +00:00
Barry Warsaw
efae52ec2c
Initial revision
1994-07-25 21:52:13 +00:00