summaryrefslogtreecommitdiff
path: root/CODING_GUIDELINES.md
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2016-08-23 13:13:44 -0700
committerGitHub <noreply@github.com>2016-08-23 13:13:44 -0700
commita22909c226eecd4632de45c04607ebddfeb96a19 (patch)
treeedd4e9276d354ac44c97855a8cd97547f05c700e /CODING_GUIDELINES.md
parenta695e18615792b50b24f1b5b5e80ca479fbb74a5 (diff)
downloadansible-a22909c226eecd4632de45c04607ebddfeb96a19.tar.gz
Migrate basestring to a python3 compatible type (#17199)
Diffstat (limited to 'CODING_GUIDELINES.md')
-rw-r--r--CODING_GUIDELINES.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/CODING_GUIDELINES.md b/CODING_GUIDELINES.md
index 701eb02fb4..60bf41ea65 100644
--- a/CODING_GUIDELINES.md
+++ b/CODING_GUIDELINES.md
@@ -277,7 +277,8 @@ To test if something is a string, consider that it may be unicode.
if type(x) == str:
# yes
- if isinstance(x, basestring):
+ from ansible.compat.six import string_types
+ if isinstance(x, string_types):
Cleverness
==========