Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
dkfellows committed Feb 12, 2021
1 parent 3760e95 commit 854443d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spinn_utilities/package_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def all_modules(directory, prefix, remove_pyc_files=False):
elif module != "__pycache__":
full_path = os.path.join(directory, module)
if os.path.isdir(full_path):
results.update(all_modules(full_path, prefix + "." + module,
remove_pyc_files))
results.update(all_modules(
full_path, prefix + "." + module, remove_pyc_files))
return results


Expand Down
2 changes: 1 addition & 1 deletion spinn_utilities/ranged/range_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def view_factory(self, key):
# Key is a slice - return a sliced view
if isinstance(key, slice):
slice_start, slice_stop = self._check_slice_in_range(
key.start, key.stop)
key.start, key.stop)

if slice_start >= slice_stop:
msg = "{} would result in an empty view".format(key)
Expand Down

0 comments on commit 854443d

Please sign in to comment.