Re: [PATCH V4 06/20] tools/rv: Add dot2c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 16 Jun 2022 10:44:48 +0200
Daniel Bristot de Oliveira <bristot@xxxxxxxxxx> wrote:

> +    def __create_matrix(self):
> +        # transform the array into a dictionary
> +        events = self.events
> +        states = self.states
> +        events_dict = {}
> +        states_dict = {}
> +        nr_event = 0
> +        for event in events:
> +            events_dict[event] = nr_event
> +            nr_event += 1
> +
> +        nr_state = 0
> +        for state in states:
> +            states_dict[state] = nr_state
> +            nr_state = nr_state + 1
> +

Hmm, do you just like inconsistency?

		nr_event += 1

		nr_state = nr_state + 1

??

-- Steve



[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux