Changeset dc8d1c2 in sasview for src/sas/sascalc/dataloader


Ignore:
Timestamp:
Sep 22, 2017 6:59:52 PM (7 years ago)
Author:
Paul Kienzle <pkienzle@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
56dac0b
Parents:
34d7b35
Message:

python 3 doesn't support list.sort(cmp=…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sascalc/dataloader/loader.py

    r574adc7 rdc8d1c2  
    7575        try: 
    7676            return super(Registry, self).load(path, format=format) 
     77        #except Exception: raise  # for debugging, don't use fallback loader 
    7778        except NoKnownLoaderException as nkl_e: 
    7879            pass  # Try the ASCII reader 
     
    329330        extlist = [ext for ext in self.extensions() if path.endswith(ext)] 
    330331        # Sort matching extensions by decreasing order of length 
    331         extlist.sort(lambda a, b: len(a) < len(b)) 
     332        extlist.sort(key=len) 
    332333        # Combine loaders for matching extensions into one big list 
    333334        writers = [] 
Note: See TracChangeset for help on using the changeset viewer.