Skip to content

Commit cd3d410

Browse files
committed
Minor improvements based on PR feedback
1 parent 2f47b91 commit cd3d410

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mbed/mbed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ def remove(self, dest, *args, **kwargs):
11821182
def clone(self, url, path, rev=None, depth=None, protocol=None, **kwargs):
11831183
# Sorted so repositories that match urls are attempted first
11841184
info("Trying to guess source control management tool. Supported SCMs: %s" % ', '.join([s.name for s in scms.values()]))
1185-
for _, scm in scms.items():
1185+
for scm in scms.values():
11861186
main = True
11871187
cache = self.get_cache(url, scm.name)
11881188

@@ -1261,7 +1261,7 @@ def write(self):
12611261
# Safely convert repo URL to https schema if this is a public SCM service (github/butbucket), supporting all schemas.
12621262
# This allows anonymous cloning of public repos without having to have ssh keys and associated accounts at github/bitbucket/etc.
12631263
# Without this anonymous users will get clone errors with ssh repository links even if the repository is public.
1264-
# See hhttps://help.github.com/articles/which-remote-url-should-i-use/
1264+
# See https://help.github.com/articles/which-remote-url-should-i-use/
12651265
url = formaturl(url, 'https')
12661266

12671267
ref = url.rstrip('/') + '/' + (('' if self.is_build else '#') + self.rev if self.rev else '')

0 commit comments

Comments
 (0)