Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit 0b35b1e

Browse files
committed
Rewrite as Python 3 compatible
1 parent e7d8287 commit 0b35b1e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
'License :: OSI Approved :: MIT License',
3636

37-
'Programming Language :: Python :: 2',
37+
'Programming Language :: Python :: 2.7',
3838
'Programming Language :: Python :: 3',
3939
],
4040

src/codacy/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import reporter
1+
from __future__ import absolute_import
2+
from . import reporter
23

34

45
def main():

src/codacy/reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def percent(s):
7272
'fileReports': [],
7373
}
7474

75-
sources = map(lambda x: x.firstChild.nodeValue, report_xml.getElementsByTagName('source'))
75+
sources = [x.firstChild.nodeValue for x in report_xml.getElementsByTagName('source')]
7676
classes = report_xml.getElementsByTagName('class')
7777
for cls in classes:
7878
file_report = {

0 commit comments

Comments
 (0)