From: Dennis Kaarsemaker Date: Tue, 20 Oct 2015 19:31:46 +0000 (+0200) Subject: git-p4: import the ctypes module X-Git-Tag: v2.7.0-rc0~73^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b07cd230a1759c0e9a1e4cf2397bd238ceae96b;p=thirdparty%2Fgit.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-p4.py b/git-p4.py index a60c086b18..ff4113a661 100755 --- a/git-p4.py +++ b/git-p4.py @@ -22,6 +22,7 @@ import platform import re import shutil import stat +import ctypes try: from subprocess import CalledProcessError