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>
Dennis Kaarsemaker committed
Oct 20, 2015 at 21:31 UTC
4b07cd230a1759c0e9a1e4cf2397bd238ceae96b
1 file changed
+1
git-p4.py
+1
@@ -22,6 +22,7 @@ import platform
22
import re
23
import shutil
24
import stat
25
+import ctypes
26
27
try:
28
from subprocess import CalledProcessError