cf2e5c02c448c6f25136a4cd1b89e7f0ba1a3d37,lib/streamlit/config.py,,get_s3_option,#Any#,159

Before Change


      - url
    
    LOGGER.debug("Trying to get bucket option")
    LOGGER.debug("s3.nothing -> %s" % get_option("s3.nothing"))
    import sys
    sys.exit(-1)

After Change


        region    = ("storage.s3.region"   , "s3.region"    ),
    )
    try:
        new_option, old_option = s3_option_table[option]
        LOGGER.debug(f"Getting option "{option}" which maps to "{new_option}" or "{old_option}".")
    except KeyError:
        raise RuntimeError("S3 Option "%s" not recognized." % option)
    if get_option(new_option) is not None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: streamlit/streamlit
Commit Name: cf2e5c02c448c6f25136a4cd1b89e7f0ba1a3d37
Time: 2018-07-06
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_s3_option


Project Name: pantsbuild/pants
Commit Name: 8c0dad8243fc3d6daffcfae1842a41263480bf7a
Time: 2014-10-28
Author: zundel@squareup.com
File Name: src/python/pants/backend/jvm/tasks/idea_gen.py
Class Name: IdeaGen
Method Name: __init__


Project Name: streamlit/streamlit
Commit Name: c786913462decebc4157ac3e8d2ec08303021adc
Time: 2018-07-02
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_s3_option