Added manual check for ctrl-C in getpass input. Fixes PYWP-13.
Added manual check for ctrl-C in getpass input. Fixes PYWP-13.

A bug in the getpass library makes it not respond to command characters such as
ctrl-Z and ctrl-C in python 2.6+. This adds a manual check for ctrl-C characters
in the password and raises an Exception if found.

See also: http://bugs.python.org/issue11236

pywikibot/core-migration-example