Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
assume Python 3.7 or better
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Sep 16, 2020
1 parent e5f6663 commit ff6f4a6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions build/bin/sage-spkg
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,10 @@

# Avoid surprises with character ranges [a-z] in regular expressions
# See Trac #15791; some locales can produce different results for
# character ranges (use C.UTF-8 to ensure UTF-8 default encoding in Python)
if test x`locale -a | grep C\.UTF-8` != x; then
export LC_ALL=C.UTF-8;
else
export LC_ALL=C;
fi
# character ranges; using C.UTF-8 to ensure UTF-8 default encoding in Python
# introduces extra complications, see #30053, so we don't do it, but
# assume we are on Python3.x, for x at least 7.
export LC_ALL=C

usage()
{
Expand Down

0 comments on commit ff6f4a6

Please sign in to comment.