Skip to content

Commit

Permalink
Checks: Remove workarounds for narrow builds
Browse files Browse the repository at this point in the history
Since Python 3.3 all builds are wide, so avoid dealing with that for
now.

See actions/setup-python#23
See #2201
  • Loading branch information
nijel committed Feb 20, 2020
1 parent c1ca4f3 commit ebe3458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/test.yml
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
python-version: [3.5, 3.6, 3.7, 3.8]
requirements: ["latest", "minimal", "edge"]
database: ["postgresql", "sqlite"]
exclude:
Expand Down Expand Up @@ -68,19 +68,6 @@ jobs:
- python-version: 3.7
requirements: "edge"
database: "postgresql"
# Limit tests for 2.7
- python-version: 2.7
requirements: "minimal"
database: "sqlite"
- python-version: 2.7
requirements: "minimal"
database: "postgresql"
- python-version: 2.7
requirements: "edge"
database: "sqlite"
- python-version: 2.7
requirements: "edge"
database: "postgresql"
name: py${{ matrix.python-version }}, ${{ matrix.database }}, ${{ matrix.requirements }} deps

services:
Expand Down
6 changes: 1 addition & 5 deletions weblate/checks/same.py
Expand Up @@ -72,11 +72,7 @@
re.IGNORECASE,
)

# Python 2 with UCS-2 build:
if sys.maxunicode == 65535:
EMOJI_RE = re.compile(u'[\U2600-\U27BF]|(?:[\uD83C-\uD83E][\uDC00-\uDFFF]|\uD83F[\uDC00-\uDFFD])')
else:
EMOJI_RE = re.compile(u'[\U00002600-\U000027BF]|[\U0001f000-\U0001fffd]')
EMOJI_RE = re.compile(u'[\U00002600-\U000027BF]|[\U0001f000-\U0001fffd]')

# Docbook tags to ignore
DB_TAGS = ('screen', 'indexterm', 'programlisting')
Expand Down

0 comments on commit ebe3458

Please sign in to comment.