git-p4: import the ctypes module

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>
maint
Dennis Kaarsemaker 2015-10-20 21:31:46 +02:00 committed by Junio C Hamano
parent 4d25dc4475
commit 4b07cd230a
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import platform
import re
import shutil
import stat
import ctypes

try:
from subprocess import CalledProcessError