Skip to content

Commit

Permalink
python 3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
carsongee committed Apr 24, 2015
1 parent ca1be94 commit 2a4f0cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pytest_pylint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"""Pylint plugin for py.test"""
from __future__ import unicode_literals
from __future__ import absolute_import

import pytest

from pylint import lint
Expand Down Expand Up @@ -79,7 +82,7 @@ def runtest(self):
"""Setup and run pylint for the given test file."""
reporter = ProgrammaticReporter()
# Build argument list for pylint
args_list = [unicode(self.fspath)]
args_list = [str(self.fspath)]
if self.config.option.pylint_rcfile:
args_list.append('--rcfile={0}'.format(
self.config.option.pylint_rcfile
Expand Down

0 comments on commit 2a4f0cf

Please sign in to comment.