Skip to content

Commit c7711b3

Browse files
committed
Cleaned up formatting
1 parent 8a3510a commit c7711b3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

mbed/mbed.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ def clone(url, path, rev=None, depth=None, protocol=None, name=None):
624624
popen([git_cmd, 'remote', 'add', 'origin', url])
625625

626626
else:
627-
print("Cloning...")
628627
popen([git_cmd, 'clone', formaturl(url, protocol), path] + (['-v'] if very_verbose else ([] if verbose else ['-q'])))
629628

630629
def add(dest):
@@ -1744,12 +1743,11 @@ def new(name, scm='git', program=False, library=False, mbedlib=False, create_onl
17441743
p.path = cwd_root
17451744
p.set_root()
17461745
if not create_only and not p.get_os_dir() and not p.get_mbedlib_dir():
1747-
url = mbed_lib_url if mbedlib else mbed_os_url+"#latest"
1746+
url = mbed_lib_url if mbedlib else mbed_os_url+'#latest'
17481747
d = 'mbed' if mbedlib else 'mbed-os'
17491748
try:
17501749
with cd(d_path):
17511750
add(url, depth=depth, protocol=protocol, top=False)
1752-
17531751
except Exception as e:
17541752
if os.path.isdir(os.path.join(d_path, d)):
17551753
rmtree_readonly(os.path.join(d_path, d))
@@ -1821,7 +1819,7 @@ def import_(url, path=None, ignore=False, depth=None, protocol=None, top=True):
18211819
warning(err)
18221820
else:
18231821
error(err, 1)
1824-
1822+
18251823
repo.sync()
18261824

18271825
if top: # This helps sub-commands to display relative paths to the imported program
@@ -1857,8 +1855,8 @@ def add(url, path=None, ignore=False, depth=None, protocol=None, top=True):
18571855
lib.write()
18581856
repo.add(lib.lib)
18591857

1860-
#if top:
1861-
# Program(repo.path).post_action()
1858+
if top:
1859+
Program(repo.path).post_action()
18621860

18631861

18641862
# Remove library

0 commit comments

Comments
 (0)