Don't attempt locale-aware sorting for now.

On Python 2, locale.strxfrm() can't handle unicode.
This commit is contained in:
Thomas Kluyver 2014-02-18 16:37:59 -08:00
parent 4fe9f8d057
commit c75d4e9962

View File

@ -18,7 +18,6 @@ Authors:
#-----------------------------------------------------------------------------
import io
import locale
import os
import glob
import shutil
@ -33,8 +32,8 @@ from IPython.utils import tz
from IPython.html.utils import is_hidden, to_os_path
def sort_key(item):
"""Case-insensitive, locale aware sorting."""
return locale.strxfrm(item['name'].lower())
"""Case-insensitive sorting."""
return item['name'].lower()
#-----------------------------------------------------------------------------
# Classes