summaryrefslogtreecommitdiff
path: root/test/code-smell/replace-urlopen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/code-smell/replace-urlopen.sh')
-rwxr-xr-xtest/code-smell/replace-urlopen.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/code-smell/replace-urlopen.sh b/test/code-smell/replace-urlopen.sh
index 410b2e565e..404caf3098 100755
--- a/test/code-smell/replace-urlopen.sh
+++ b/test/code-smell/replace-urlopen.sh
@@ -3,7 +3,7 @@
BASEDIR=${1-"."}
URLLIB_USERS=$(find "$BASEDIR" -name '*.py' -exec grep -H urlopen \{\} \;)
-URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/\(\n\|lib\/ansible\/module_utils\/urls.py\)/d')
+URLLIB_USERS=$(echo "$URLLIB_USERS" | sed '/\(\n\|lib\/ansible\/module_utils\/urls.py\|lib\/ansible\/compat\/six\/_six.py\)/d')
if test -n "$URLLIB_USERS" ; then
printf "$URLLIB_USERS"
exit 1