Skip to content

Commit

Permalink
Cleaned up flake8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Nov 27, 2015
1 parent 8289676 commit e9af3fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion netjsonconfig/backends/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def cleanup(self, output):
output = output.replace('True', '1')\
.replace('False', '0')
# max 2 consecutive \n delimiters
output = output.replace('\n\n\n', '\n\n')
output = output.replace('\n\n\n', '\n\n')
# if output is present
# ensure it always ends with 1 new line
if output.endswith('\n\n'):
Expand Down
5 changes: 1 addition & 4 deletions netjsonconfig/backends/openwisp/openwisp.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import json
import re
import six
import time
import tarfile
from io import BytesIO

from jinja2 import Environment, PackageLoader

Expand Down Expand Up @@ -76,7 +73,7 @@ def _get_install_context(self):
return dict(hostname=config['general']['hostname'], # hostname is required
l2vpn=l2vpn,
bridges=bridges,
radios=config.get('radios', []), # radios might be empty
radios=config.get('radios', []), # radios might be empty
cron=cron)

def _add_install(self, context):
Expand Down

0 comments on commit e9af3fb

Please sign in to comment.