diff options
| author | Michael DeHaan <mdehaan@redhat.com> | 2008-07-24 14:41:42 -0400 |
|---|---|---|
| committer | Michael DeHaan <mdehaan@redhat.com> | 2008-07-24 14:41:42 -0400 |
| commit | 71478ec9d3a376e8124fe90146c3e0405f87c2ca (patch) | |
| tree | 90d1fd597ffc470c26966d34a219b4e8a9226c2b /scripts/cobbler-completion | |
| parent | 042379a84cc73c14bfff6465ee40c8237605b670 (diff) | |
| download | cobbler-71478ec9d3a376e8124fe90146c3e0405f87c2ca.tar.gz cobbler-71478ec9d3a376e8124fe90146c3e0405f87c2ca.tar.xz cobbler-71478ec9d3a376e8124fe90146c3e0405f87c2ca.zip | |
sort in a python 2.3 compliant way
Diffstat (limited to 'scripts/cobbler-completion')
| -rwxr-xr-x | scripts/cobbler-completion | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/cobbler-completion b/scripts/cobbler-completion index 4889662d..9be52511 100755 --- a/scripts/cobbler-completion +++ b/scripts/cobbler-completion @@ -111,7 +111,9 @@ def find_options(datastruct, arguments, last): return datastruct.keys() def clean_output(datastruct): - for x in sorted(datastruct.keys()): + keyz = datastruct.keys() + keyz.sort() + for x in keyz if x is not None: sys.stdout.write("%s " % x.replace("'","-")) print "" |
