Merge branch '1.11' into 1.12
Conflicts: sites/www/changelog.rst
This commit is contained in:
commit
a8ad23e61a
|
@ -436,7 +436,7 @@ class BufferedFile (object):
|
||||||
return
|
return
|
||||||
if self.newlines is None:
|
if self.newlines is None:
|
||||||
self.newlines = newline
|
self.newlines = newline
|
||||||
elif (type(self.newlines) is str) and (self.newlines != newline):
|
elif isinstance(self.newlines, basestring) and (self.newlines != newline):
|
||||||
self.newlines = (self.newlines, newline)
|
self.newlines = (self.newlines, newline)
|
||||||
elif newline not in self.newlines:
|
elif newline not in self.newlines:
|
||||||
self.newlines += (newline,)
|
self.newlines += (newline,)
|
||||||
|
|
|
@ -514,7 +514,7 @@ class InteractiveQuery (object):
|
||||||
self.instructions = instructions
|
self.instructions = instructions
|
||||||
self.prompts = []
|
self.prompts = []
|
||||||
for x in prompts:
|
for x in prompts:
|
||||||
if (type(x) is str) or (type(x) is unicode):
|
if isinstance(x, basestring):
|
||||||
self.add_prompt(x)
|
self.add_prompt(x)
|
||||||
else:
|
else:
|
||||||
self.add_prompt(x[0], x[1])
|
self.add_prompt(x[0], x[1])
|
||||||
|
|
|
@ -660,7 +660,7 @@ class SFTPClient(BaseSFTP):
|
||||||
msg.add_int(item)
|
msg.add_int(item)
|
||||||
elif isinstance(item, long):
|
elif isinstance(item, long):
|
||||||
msg.add_int64(item)
|
msg.add_int64(item)
|
||||||
elif isinstance(item, str):
|
elif isinstance(item, basestring):
|
||||||
msg.add_string(item)
|
msg.add_string(item)
|
||||||
elif isinstance(item, SFTPAttributes):
|
elif isinstance(item, SFTPAttributes):
|
||||||
item._pack(msg)
|
item._pack(msg)
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
* :bug:`235` Improve string type testing in a handful of spots (e.g. ``s/if
|
||||||
|
type(x) is str/if isinstance(x, basestring)/g``.) Thanks to ``@ksamuel`` for
|
||||||
|
the report.
|
||||||
* :release:`1.12.3 <2014-03-13>`
|
* :release:`1.12.3 <2014-03-13>`
|
||||||
* :release:`1.11.5 <2014-03-13>`
|
* :release:`1.11.5 <2014-03-13>`
|
||||||
* :release:`1.10.7 <2014-03-13>`
|
* :release:`1.10.7 <2014-03-13>`
|
||||||
|
|
Loading…
Reference in New Issue