Consistently use "superuser" instead of "super user"
[pgsql.git] / src / test / locale / sort-test.py
blob53019038ab1323a6843f92a0017b49e61231f56e
1 #! /usr/bin/env python
3 import sys, string, locale
4 locale.setlocale(locale.LC_ALL, "")
6 if len(sys.argv) != 2:
7 sys.stderr.write("Usage: sort.py filename\n")
8 sys.exit(1)
10 infile = open(sys.argv[1], 'r')
11 list = infile.readlines()
12 infile.close()
14 for i in range(0, len(list)):
15 list[i] = list[i][:-1] # chop!
17 list.sort(key=locale.strxfrm)
18 print('\n'.join(list))