mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Don't attempt locale-aware sorting for now.
On Python 2, locale.strxfrm() can't handle unicode.
This commit is contained in:
parent
4fe9f8d057
commit
c75d4e9962
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user