git-p4: import the ctypes module
authorDennis Kaarsemaker <dennis@kaarsemaker.net>
Tue, 20 Oct 2015 19:31:46 +0000 (21:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Oct 2015 19:55:22 +0000 (12:55 -0700)
The ctypes module is used on windows to calculate free disk space,
so it must be imported. We won't need it on other platforms, but
the module is available in Python 2.5 and newer, so importing it
unconditionally is harmless.

Signed-off-by: Dennis Kaarsemaker <dennis@kaarsemaker.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py
index a60c086b188b7dd3f26ec7c8a61700ab0f57e9ae..ff4113a661236f8306b0bd6ec1ced6600974c0ef 100755 (executable)
--- a/git-p4.py
+++ b/git-p4.py
@@ -22,6 +22,7 @@
 import re
 import shutil
 import stat
+import ctypes
 
 try:
     from subprocess import CalledProcessError