Skip to content

Commit

Permalink
Fixed flake8 linter failures
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb committed Aug 28, 2017
1 parent 896b484 commit 92889ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions fuel/utils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Expand Down
7 changes: 3 additions & 4 deletions fuel/utils/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Expand Down Expand Up @@ -83,7 +83,6 @@ def safe_mkdir(folder_name, force_perm=None):
force_perm_path = folder_name.split(os.path.sep)
if force_perm_path[-1] == "":
force_perm_path = force_perm_path[:-1]
base = len(force_perm_path) - len(intermediary_folders)

for i in range(1, len(intermediary_folders)):
folder_to_create = os.path.sep.join(intermediary_folders[:i + 1])
Expand Down Expand Up @@ -126,4 +125,4 @@ def check_enough_space(dataset_local_dir, remote_fname, local_fname,
# Instead of only looking if there's enough space, we ensure we do not
# go over max disk usage level to avoid filling the disk/partition
return ((storage_used + storage_need) <
(storage_total * max_disk_usage))
(storage_total * max_disk_usage))
6 changes: 3 additions & 3 deletions fuel/utils/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Expand Down Expand Up @@ -223,7 +223,7 @@ def lock(tmp_dir, timeout=NOT_SET, min_wait=None, max_wait=None, verbosity=1):
continue
if last_owner == read_owner:
if (timeout is not None and
time.time() - time_start >= timeout):
time.time() - time_start >= timeout):
# Timeout exceeded or locking process dead.
if not no_display:
if read_owner == 'failure':
Expand Down

0 comments on commit 92889ae

Please sign in to comment.