Skip to content

Commit f3ffcef

Browse files
authored
Update custom_signatures_import.py
1 parent de77406 commit f3ffcef

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

examples/custom_signatures_import.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,12 @@ def create_projects(hub, metadata):
7777
print ("Failed to set custom signature flag for {}".format(project_name))
7878

7979
def upload_scan_data(hub, workdir):
80-
with (os.scandir(workdir)) as entries:
81-
for entry in entries:
82-
pathname = entry.path
83-
if pathname.endswith('.bdio'):
84-
print("Uploading {}".format(pathname), end = ". ")
85-
response = hub.upload_scan(pathname)
86-
print ("Response {}".format(response))
80+
for entry in os.scandir(workdir):
81+
pathname = entry.path
82+
if pathname.endswith('.bdio'):
83+
print("Uploading {}".format(pathname), end = ". ")
84+
response = hub.upload_scan(pathname)
85+
print ("Response {}".format(response))
8786

8887
def main(argv=None): # IGNORE:C0111
8988
'''Command line options.'''

0 commit comments

Comments
 (0)