Skip to content

Commit 39bf7c0

Browse files
authored
Merge pull request #3199 from skshetry/remove-use-six
py2: remove use of `six`
2 parents 0be5046 + 8dd2dbb commit 39bf7c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dvc/repo/add.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33

44
import colorama
5-
from six import string_types
65

76
from . import locked
87
from dvc.exceptions import RecursiveAddingWhileUsingFilename
@@ -20,7 +19,7 @@ def add(repo, targets, recursive=False, no_commit=False, fname=None):
2019
if recursive and fname:
2120
raise RecursiveAddingWhileUsingFilename()
2221

23-
if isinstance(targets, string_types):
22+
if isinstance(targets, str):
2423
targets = [targets]
2524

2625
stages_list = []

0 commit comments

Comments
 (0)