Add python test snippets for assertIsNone and assertIsNotNone
Merge pull request #404 from okcompute/master

python: Add snippets for assertIsNone and assertIsNotNone
Make trigger for "else" inline with recommendations.

Also make it require word boundary so does not expand within a word.
Merge pull request #407 from joshaw/master

Java: Make trigger for "else" inline with recommendations.
rst: Make has_cjk() Python 3 compatible.

In Python 3, iterators no longer have a next() method: it has been renamed to
__next__(). This could be worked around by using the builtin function next(),
but a simpler fix is to just use the regex' object search() method instead of
finditer().
rst: Provide xrange() for Python 3.