mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 20:34:39 +01:00
12 lines
319 B
Python
12 lines
319 B
Python
import string
|
|
|
|
|
|
# A translation table for converting ASCII lower case to upper case.
|
|
_ascii_trans_table = string.maketrans(string.ascii_lowercase,
|
|
string.ascii_uppercase)
|
|
|
|
|
|
# Convert a string to ASCII upper case irrespective of the current locale.
|
|
def ascii_upper(s):
|
|
return s.translate(_ascii_trans_table)
|