File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
python3 scripts/validata_data.py data
6
6
"""
7
7
8
- import os
8
+ import op as op
9
9
import sys
10
10
import hashlib
11
11
@@ -48,11 +48,11 @@ def validate_data(data_directory):
48
48
``data_hashes.txt`` file.
49
49
"""
50
50
# Read lines from ``data_hashes.txt`` file.
51
- for line in open (os . path .join (data_directory , 'data_hashes.txt' ), 'rt' ):
51
+ for line in open (op .join (data_directory , 'data_hashes.txt' ), 'rt' ):
52
52
# Split into SHA1 hash and filename
53
53
hash , filename = line .strip ().split ()
54
54
# Calculate actual hash for given filename.
55
- actual_hash = file_hash (os . path .join (data_directory , filename ))
55
+ actual_hash = file_hash (op .join (data_directory , filename ))
56
56
# If hash for filename is not the same as the one in the file, raise
57
57
# ValueError
58
58
if hash != actual_hash :
You can’t perform that action at this time.
0 commit comments