From ecb4f0b998dc96465f70b88c8452861fbb36bb14 Mon Sep 17 00:00:00 2001 From: Amjad Saadeh Date: Fri, 12 Oct 2018 14:43:08 +0200 Subject: [PATCH] hdfs output files: fix import error when using hdfs output files on windows When output files are located on hdfs an import error has been raised. Fixes #1215 --- dvc/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/system.py b/dvc/system.py index d8d34d0a5..02d19e36d 100644 --- a/dvc/system.py +++ b/dvc/system.py @@ -112,8 +112,8 @@ class System(object): @staticmethod def getdirinfo(path): import ctypes - from ctypes import c_void_p, c_wchar_p, Structure, WinError - from ctypes.wintypes import DWORD, HANDLE, POINTER, BOOL + from ctypes import c_void_p, c_wchar_p, Structure, WinError, POINTER + from ctypes.wintypes import DWORD, HANDLE, BOOL FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 FILE_SHARE_READ = 0x00000001