summaryrefslogtreecommitdiff
path: root/linaropy/git/clone.py
diff options
context:
space:
mode:
Diffstat (limited to 'linaropy/git/clone.py')
-rw-r--r--linaropy/git/clone.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/linaropy/git/clone.py b/linaropy/git/clone.py
index c821df0..ef5842f 100644
--- a/linaropy/git/clone.py
+++ b/linaropy/git/clone.py
@@ -13,7 +13,7 @@ from stat import *
from ..proj import Proj
from ..cd import cd
-from gitrepo import GitRepo
+from linaropy.git.gitrepo import GitRepo
import time
@@ -29,7 +29,7 @@ class Clone(GitRepo):
# Clone a new repo from the remote
if clonedir is None or (isinstance(
- clonedir, basestring) and clonedir == ""):
+ clonedir, str) and clonedir == ""):
if remote == "" or remote is None:
raise TypeError(
'Clone input parameter \'remote\' can not be empty')
@@ -55,7 +55,7 @@ class Clone(GitRepo):
# Reuse an existing git clone directory
else:
- if not isinstance(clonedir, basestring):
+ if not isinstance(clonedir, str):
raise TypeError('clonedir must be of type basestring')
elif not os.path.isdir(clonedir):
raise EnvironmentError(
@@ -124,12 +124,12 @@ class TestClone(unittest.TestCase):
cls.rnclone = Clone(
cls.proj,
- remote=u'http://git.linaro.org/toolchain/release-notes.git')
+ remote='http://git.linaro.org/toolchain/release-notes.git')
# OFFLINE:
# cls.rnclone=Clone(cls.proj,remote=u'/var/run/media/ryanarn/sidecar/reldir/release-notes')
cls.startbranch = cls.rnclone.getbranch()
- cls.rtremote = u'http://git.linaro.org/toolchain/tcwg-release-tools.git'
+ cls.rtremote = 'http://git.linaro.org/toolchain/tcwg-release-tools.git'
# OFFLINE:
# cls.rtremote=u'/var/run/media/ryanarn/sidecar/releases/tcwg-release-tools'