Skip to content

Commit

Permalink
git-p4: import the ctypes module
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dennis Kaarsemaker authored and Junio C Hamano committed Oct 20, 2015
1 parent 4d25dc4 commit 4b07cd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-p4.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import re
import shutil
import stat
import ctypes

try:
from subprocess import CalledProcessError
Expand Down

0 comments on commit 4b07cd2

Please sign in to comment.