Skip to content

Commit

Permalink
Set up pep8 on pycharm
Browse files Browse the repository at this point in the history
  • Loading branch information
ezturner committed Aug 9, 2017
1 parent 8b5e569 commit 03dd403
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions restclients_core/util/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ def load_resource_from_path(resource_dir, service_name,
# attempt to open query permutations even on success
# so that if there are multiple files we throw an exception
if "?" in url:
handle = attempt_open_query_permutations(url, orig_file_path, False)
handle = attempt_open_query_permutations(url, orig_file_path,
False)

if "?" in url:
header_handle = attempt_open_query_permutations(url, orig_file_path, True)
header_handle = attempt_open_query_permutations(url,
orig_file_path,
True)

if handle is None and header_handle is None:
return None
Expand Down Expand Up @@ -73,7 +76,6 @@ def load_resource_from_path(resource_dir, service_name,
except IOError:
pass


return response


Expand Down Expand Up @@ -172,4 +174,4 @@ def attempt_open_query_permutations(url, orig_file_path, is_header_file):


def _compare_file_name(orig_file_path, directory, filename):
return len(unquote(orig_file_path)) - len(directory) == len(filename)
return len(unquote(orig_file_path)) - len(directory) == len(filename)

0 comments on commit 03dd403

Please sign in to comment.