Skip to content

Commit 06f1519

Browse files
authored
Merge pull request #54 from goanpeca/fix/add-check-for-deprecated-api
PR: Add check for deprecated api between 2 and 3 versions
2 parents 5478288 + acebb57 commit 06f1519

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Authors
12

23
The qtsass project has some great contributors! They are:
34

qtsass/api.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
from __future__ import absolute_import, print_function
1414

1515
# Standard library imports
16-
from collections import Mapping, Sequence
1716
import logging
1817
import os
18+
import sys
1919

2020
# Third party imports
2121
import sass
@@ -26,6 +26,12 @@
2626
from qtsass.importers import qss_importer
2727

2828

29+
if sys.version_info[0] == 3:
30+
from collections.abc import Mapping, Sequence
31+
else:
32+
from collections import Mapping, Sequence
33+
34+
2935
# yapf: enable
3036

3137
# Constants

rever.xsh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ $GITHUB_ORG = 'spyder-ide'
3636
$GITHUB_REPO = $PROJECT
3737
$VERSION_BUMP_PATTERNS = [
3838
# These note where/how to find the version numbers
39-
($MODULE + '/__init__.py', r'__version__\s*=.*', "__version__ = '$VERSION'"),
39+
($MODULE + '/__init__.py', r'__version__\s*=.*', '__version__ = "$VERSION"'),
4040
]
4141
$AUTHORS_FILENAME = "AUTHORS.md"
42-
$AUTHORS_TEMPLATE = """
42+
$AUTHORS_TEMPLATE = """# Authors
43+
4344
The $PROJECT project has some great contributors! They are:
4445
4546
{authors}

0 commit comments

Comments
 (0)