summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2017-03-15 14:49:08 +0100
committerJulien Danjou <julien@danjou.info>2017-03-15 14:49:08 +0100
commit6868551b12ae8479d6446961c7a220b235dd3f5e (patch)
treea10f1335290cafcd7ec26ac38a06d5c6a51a5d32
parentf612f0e5087662feb02f763f129a5b18beeba06b (diff)
Remove os.path.abspath() in ignore paths
The filenames are actually relative in validate(), so nothing matches otherwise. Change-Id: Ie9c3d2f0592817e893125f7725e9cd5e9037a942
Notes
Notes (review): Code-Review+2: Joshua Harlow <jxharlow@godaddy.com> Workflow+1: Joshua Harlow <jxharlow@godaddy.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 21 Mar 2017 19:48:17 +0000 Reviewed-on: https://review.openstack.org/445963 Project: openstack/doc8 Branch: refs/heads/master
-rw-r--r--doc8/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc8/main.py b/doc8/main.py
index 60fb6ea..45392db 100644
--- a/doc8/main.py
+++ b/doc8/main.py
@@ -75,7 +75,7 @@ def parse_ignore_path_errors(entries):
75 ignore_path_errors = collections.defaultdict(set) 75 ignore_path_errors = collections.defaultdict(set)
76 for path in entries: 76 for path in entries:
77 path, ignored_errors = path.split(";", 1) 77 path, ignored_errors = path.split(";", 1)
78 path = os.path.abspath(path.strip()) 78 path = path.strip()
79 ignored_errors = split_set_type(ignored_errors, delimiter=";") 79 ignored_errors = split_set_type(ignored_errors, delimiter=";")
80 ignore_path_errors[path].update(ignored_errors) 80 ignore_path_errors[path].update(ignored_errors)
81 return dict(ignore_path_errors) 81 return dict(ignore_path_errors)