Skip to content

Commit

Permalink
Add pylint disable for false positive on TravisCI's Python 2.7 enviro…
Browse files Browse the repository at this point in the history
…nment.
  • Loading branch information
dgilland committed Mar 26, 2015
1 parent dd41c76 commit dd078da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,5 @@ travisci-install:
.PHONY: travisci-test
travisci-test:
pep8 $(PYTEST_TARGET)
pylint -E $(COVERAGE_TARGET)
py.test $(PYTEST_ARGS) $(COVERAGE_ARGS) $(COVERAGE_TARGET) $(PYTEST_TARGET)
2 changes: 2 additions & 0 deletions pushjack/apns.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ def create_socket(host, port, certfile):
.format(certfile, ex)))

sock = socket.socket()

# pylint: disable=no-member
sock = ssl.wrap_socket(sock,
ssl_version=ssl.PROTOCOL_TLSv1,
certfile=certfile)
Expand Down

0 comments on commit dd078da

Please sign in to comment.