Skip to content

Commit

Permalink
fix: pylint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Roald Nefs <info@roaldnefs.com>
  • Loading branch information
roaldnefs committed Jan 11, 2023
1 parent cc6e617 commit d0108c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def long_description():
files.
"""
# Read content from the README.md file
with open('README.md') as readme_file:
with open('README.md', encoding='utf-8') as readme_file:
readme = readme_file.read()

# Read content from the CHANGELOG.md file
with open('CHANGELOG.md') as changelog_file:
with open('CHANGELOG.md', encoding='utf-8') as changelog_file:
changelog = changelog_file.read()

return readme + changelog
Expand Down
9 changes: 1 addition & 8 deletions tests/unit/TestNoIrregularSpacesRule.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
from tests import RunFromText


try:
# Python 2: "unicode" is built-in
unicode
except NameError:
unicode = str


LINE = '''
/tmp/testfile:
file.managed:
Expand All @@ -31,7 +24,7 @@ def setUp(self):

def test_with_irregular_spaces(self):
for irregular in NoIrregularSpacesRule.irregular_spaces:
results = self.runner.run_state(unicode(LINE).format(space=irregular))
results = self.runner.run_state(LINE.format(space=irregular))
self.assertEqual(1, len(results))

def test_without_irregular_spaces(self):
Expand Down

0 comments on commit d0108c7

Please sign in to comment.