Skip to content

Commit

Permalink
Noissue - Work around N812 and E117 from flake8 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasily Kuznetsov committed Jan 31, 2019
1 parent a0edf9a commit 0adbfcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions abp/filters/rpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def strings2utf8(data):
return [strings2utf8(v) for v in data]
if isinstance(data, tuple):
return tuple(strings2utf8(v) for v in data)
if isinstance(data, type('')): # Python 2/3 compatible way of
# saying "unicode string".
if isinstance(data, type('')):
# The condition is a Python 2/3 way of saying "unicode string".
return data.encode('utf-8')
return data

Expand Down
4 changes: 2 additions & 2 deletions tests/test_render_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
import SimpleHTTPServer
import SocketServer
except ImportError: # The modules were renamed/moved in Python 3.
import http.server as SimpleHTTPServer
import socketserver as SocketServer
from http import server as SimpleHTTPServer # noqa: N812
import socketserver as SocketServer # noqa: N812


@pytest.fixture
Expand Down

0 comments on commit 0adbfcc

Please sign in to comment.