[Piuparts-devel] piupartslib.dwke - memory

Herbert Fortes terberh at gmail.com
Sun Jan 20 06:12:18 GMT 2019


Hi,

I made a patch to:

 - class Problem:  # instantiations in loop
      - set 'required_tags' and 'optional_tags' as class attr
        because the self.__dict__ is updated by init_problem
        method and then the dict is checked. There are another
        check against required_tags after the method call.
        https://salsa.debian.org/debian/piuparts/blob/develop/piupartslib/dwke.py#L112

 - get_file_dict()
   dict comprehension instead of nested lines

 - create_problem_list()
   just sort the list instead of create a new sorted list

Patch:
https://github.com/hpfn/piuparts_3/pull/6/commits/22a238faaf35911bdaf573386157a3162b13f762



Regards,
Herbert
   
 
        



More information about the Piuparts-devel mailing list