|
14 | 14 | from optparse import OptionParser |
15 | 15 |
|
16 | 16 | import os |
17 | | -import cPickle |
| 17 | +import pickle |
18 | 18 | import glob |
19 | 19 | from re import search |
20 | 20 | from subprocess import call,PIPE |
@@ -253,8 +253,8 @@ def get_filenames_from_pool(all_samples): |
253 | 253 |
|
254 | 254 | def get_clean_fileanames(ref_samples,test_samples): |
255 | 255 | # Process the samples starting from the names |
256 | | - ref_filenames=map(lambda s:s.strip(),ref_samples.split(",")) |
257 | | - test_filenames=map(lambda s:s.strip(),test_samples.split(",")) |
| 256 | + ref_filenames=list(map(lambda s:s.strip(),ref_samples.split(","))) |
| 257 | + test_filenames=list(map(lambda s:s.strip(),test_samples.split(","))) |
258 | 258 |
|
259 | 259 | if len(ref_filenames)!=len(test_filenames): |
260 | 260 | print("The numebr of reference and test files does not seem to be the same. Please check.") |
@@ -325,8 +325,8 @@ def do_comparisons_threaded(options): |
325 | 325 | ref_filenames,test_filenames=get_clean_fileanames(options.ref_samples,options.test_samples) |
326 | 326 |
|
327 | 327 | # make the paths absolute |
328 | | - ref_filenames=map(os.path.abspath,ref_filenames) |
329 | | - test_filenames=map(os.path.abspath,test_filenames) |
| 328 | + ref_filenames=list(map(os.path.abspath,ref_filenames)) |
| 329 | + test_filenames=list(map(os.path.abspath,test_filenames)) |
330 | 330 |
|
331 | 331 | samples,cmssw_version1,cmssw_version2=guess_params(ref_filenames,test_filenames) |
332 | 332 |
|
|
0 commit comments