diff --git a/kallithea/bin/kallithea_cli_iis.py b/kallithea/bin/kallithea_cli_iis.py --- a/kallithea/bin/kallithea_cli_iis.py +++ b/kallithea/bin/kallithea_cli_iis.py @@ -65,7 +65,7 @@ def iis_install(virtualdir, config): config_file_abs = config['__file__'] try: - import isapi_wsgi + import isapi_wsgi # pytype: disable=import-error assert isapi_wsgi except ImportError: sys.stderr.write('missing requirement: isapi-wsgi not installed\n') diff --git a/kallithea/lib/compat.py b/kallithea/lib/compat.py --- a/kallithea/lib/compat.py +++ b/kallithea/lib/compat.py @@ -56,7 +56,7 @@ if os.name == 'nt': # Windows def kill(pid, sig): """kill function for Win32""" - kernel32 = ctypes.windll.kernel32 + kernel32 = ctypes.windll.kernel32 # pytype: disable=module-attr handle = kernel32.OpenProcess(1, 0, pid) return (0 != kernel32.TerminateProcess(handle, 0)) diff --git a/kallithea/templates/py/git_post_receive_hook.py b/kallithea/templates/py/git_post_receive_hook.py --- a/kallithea/templates/py/git_post_receive_hook.py +++ b/kallithea/templates/py/git_post_receive_hook.py @@ -22,7 +22,7 @@ import kallithea.bin.vcs_hooks # instead of the exception output. if sys.platform == "win32": import msvcrt - msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) + msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) # pytype: disable=module-attr KALLITHEA_HOOK_VER = '_TMPL_' os.environ['KALLITHEA_HOOK_VER'] = KALLITHEA_HOOK_VER diff --git a/kallithea/tests/scripts/manual_test_concurrency.py b/kallithea/tests/scripts/manual_test_concurrency.py --- a/kallithea/tests/scripts/manual_test_concurrency.py +++ b/kallithea/tests/scripts/manual_test_concurrency.py @@ -199,7 +199,7 @@ if __name__ == '__main__': backend = 'hg' if METHOD == 'pull': - seq = next(tempfile._RandomNameSequence()) + seq = next(tempfile._RandomNameSequence()) # pytype: disable=module-attr test_clone_with_credentials(repo=sys.argv[1], method='clone', backend=backend) s = time.time()