c5b11b7668df61c3a5c3f927625430c56413d5fb,lib/prody/utilities/pathtools.py,,openFile,#Any#,53
Before Change
backup_ext = kwargs.pop("backup_ext",
pkg.SETTINGS.get("backup_ext", ".BAK"))
if args and args[0][0] in ("a", "w"):
if isfile(filename) and backup:
bak = filename + backup_ext
if isfile(bak):
os.remove(bak)
os.rename(filename, bak)
return OPEN.get(ext, open)(filename, *args, **kwargs)
def gunzip(filename, outname=None):
After Change
:type backup_ext: str
from prody import SETTINGS
try:
exists = isfile(filename)
except Exception as err:
raise TypeError("filename must be a string ({0:s})".format(str(err)))
folder = kwargs.pop("folder", None)
if folder:
filename = join(folder, filename)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: prody/ProDy
Commit Name: c5b11b7668df61c3a5c3f927625430c56413d5fb
Time: 2012-11-14
Author: lordnapi@gmail.com
File Name: lib/prody/utilities/pathtools.py
Class Name:
Method Name: openFile
Project Name: hyperspy/hyperspy
Commit Name: 4bc7c41914a31d157c7dcbb25fdef07ce0e69077
Time: 2020-09-02
Author: tjof2@cam.ac.uk
File Name: hyperspy/tests/io/test_empad.py
Class Name:
Method Name: teardown_module
Project Name: aws/sagemaker-python-sdk
Commit Name: d2d1cdf874afa7b8aa7f5bf8d764f7b1bd2f9f10
Time: 2020-05-04
Author: chuyangdeng@gmail.com
File Name: src/sagemaker/utils.py
Class Name:
Method Name: _create_or_update_code_dir