...
|
...
|
@@ -262,7 +262,7 @@ To test if something is a string, consider that it may be unicode.
|
262
|
262
|
if type(x) == str:
|
263
|
263
|
|
264
|
264
|
# yes
|
265
|
|
- if isintance(x, basestr):
|
|
265
|
+ if isintance(x, basestring):
|
266
|
266
|
|
267
|
267
|
Cleverness
|
268
|
268
|
==========
|
...
|
...
|
@@ -288,7 +288,7 @@ All code in Ansible core must support a minimum version of Python 2.6.
|
288
|
288
|
|
289
|
289
|
Module code must support a minimum of Python 2.4, with occasional exception for modules that require code that themselves require 2.6 and later.
|
290
|
290
|
|
291
|
|
-A quick reminder is that list comprehensions in Python 2.4 are not as fully fleshed out, there are not 'dict' comprehensions, and there is no 'with' statement.
|
|
291
|
+A quick reminder is that list comprehensions in Python 2.4 are not as fully fleshed out, there are no 'dict' comprehensions, and there is no 'with' statement.
|
292
|
292
|
But otherwise it's pretty much all the same.
|
293
|
293
|
|
294
|
294
|
The End
|