Remove unnecessary uses of open_remote() where we know __file__ will always be local

This commit is contained in:
CatalinVoss 2020-11-16 13:47:06 -08:00
parent b5b3b2546c
commit 611633fcf6
2 changed files with 2 additions and 2 deletions

View File

@ -775,7 +775,7 @@ def create_inference_graph(batch_size=1, n_steps=16, tflite=False):
def file_relative_read(fname):
return open_remote(os.path.join(os.path.dirname(__file__), fname)).read()
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def export():

View File

@ -76,7 +76,7 @@ def maybe_download_tc_bin(**kwargs):
os.chmod(final_file, final_stat.st_mode | stat.S_IEXEC)
def read(fname):
return open_remote(os.path.join(os.path.dirname(__file__), fname)).read()
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def main():
parser = argparse.ArgumentParser(description='Tooling to ease downloading of components from TaskCluster.')