Skip to content

Commit

Permalink
pep8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aluminiumgeek committed Dec 18, 2015
1 parent 8e41c5a commit e280930
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/user_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from modules.utils.data import prepare_binary_from_url


def check_store(bot, url):
if bot.store:
return bot.store.get(url)
Expand Down
2 changes: 1 addition & 1 deletion modules/user_uptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def main(bot, *args):

with open('/proc/uptime', 'r') as f:
uptime_seconds = float(f.readline().split()[0])
return str(timedelta(seconds = uptime_seconds))
return str(timedelta(seconds=uptime_seconds))
1 change: 0 additions & 1 deletion tests/test_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,3 @@ def test_run_module_without_args_should_return_error_message(self):
@patch('modules.user_g.requests.get', lambda *args, **kwargs: MagicMock(content=b'{"responseData": {"results": []}}'))
def test_module_should_return_error_message_when_no_results(self):
self.assertEqual(user_g.main(self.bot, 'dank', 'memes'), 'No such items')

0 comments on commit e280930

Please sign in to comment.