From e208d5250cf3c5256493b193a3ab6d18d21f38e2 2014-02-28 19:35:49 From: Thomas Kluyver Date: 2014-02-28 19:35:49 Subject: [PATCH] Don't attempt locale-aware sorting for now. On Python 2, locale.strxfrm() can't handle unicode. --- diff --git a/IPython/html/services/notebooks/filenbmanager.py b/IPython/html/services/notebooks/filenbmanager.py index 820e80a..6431295 100644 --- a/IPython/html/services/notebooks/filenbmanager.py +++ b/IPython/html/services/notebooks/filenbmanager.py @@ -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