Repository: libcloud Updated Branches: refs/heads/trunk 232f9491f -> 849043eaa
docs: fix "if" typo "is foo is not None" -> "if foo is not None" Closes #632 Signed-off-by: Tomaz Muraus <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/1ea4a154 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/1ea4a154 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/1ea4a154 Branch: refs/heads/trunk Commit: 1ea4a1548d3c4d7a4344da155563251662666eef Parents: 232f949 Author: Ken Dreyer <[email protected]> Authored: Thu Nov 12 20:35:49 2015 -0700 Committer: Tomaz Muraus <[email protected]> Committed: Fri Nov 13 11:21:11 2015 +0100 ---------------------------------------------------------------------- docs/development.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/1ea4a154/docs/development.rst ---------------------------------------------------------------------- diff --git a/docs/development.rst b/docs/development.rst index d71cc62..58460e0 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -227,7 +227,7 @@ contains. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When checking if a variable is provided or defined, prefer to use -``is foo is not None`` instead of ``if foo``. +``if foo is not None`` instead of ``if foo``. If you use ``if foo`` approach, it's easy to make a mistake when a valid value can also be falsy (e.g. a number ``0``).
