diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2016-08-23 13:13:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-23 13:13:44 -0700 |
commit | a22909c226eecd4632de45c04607ebddfeb96a19 (patch) | |
tree | edd4e9276d354ac44c97855a8cd97547f05c700e /CODING_GUIDELINES.md | |
parent | a695e18615792b50b24f1b5b5e80ca479fbb74a5 (diff) | |
download | ansible-a22909c226eecd4632de45c04607ebddfeb96a19.tar.gz |
Migrate basestring to a python3 compatible type (#17199)
Diffstat (limited to 'CODING_GUIDELINES.md')
-rw-r--r-- | CODING_GUIDELINES.md | 3 |
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 ========== |