c31afbb3c7523e111bb13f16afb2cb98d3ffe424,snips_nlu/utils.py,,mkdir_p,#Any#,141
Before Change
try:
os.makedirs(path)
except OSError as exc: // Python >2.5
if exc.errno == errno.EEXIST and os.path.isdir(path):
pass
else:
raise
After Change
http://stackoverflow.com/questions/600268/mkdir-p-functionality-in-python
try:
os.makedirs(str(path))
except OSError as exc: // Python >2.5
if exc.errno == errno.EEXIST and path.is_dir():
pass
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: snipsco/snips-nlu
Commit Name: c31afbb3c7523e111bb13f16afb2cb98d3ffe424
Time: 2018-06-15
Author: adrien.ball@snips.net
File Name: snips_nlu/utils.py
Class Name:
Method Name: mkdir_p
Project Name: chartbeat-labs/textacy
Commit Name: e8bd84284e3ac61bff123427a80218c3e5f76583
Time: 2019-08-09
Author: burtdewilde@gmail.com
File Name: textacy/io/utils.py
Class Name:
Method Name: get_filepaths
Project Name: tensorflow/benchmarks
Commit Name: b78d0685b201fa433507a4d4e1d0a0f70a0dc783
Time: 2017-11-01
Author: anjalisridhar@google.com
File Name: scripts/keras_benchmarks/models/cifar10_cnn_benchmark.py
Class Name: Cifar10CnnBenchmark
Method Name: benchmarkCifar10Cnn