Re: [PATCH] Show call depth with spaces in log_method_call()

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

 



> +    fmt = "%s%s.%s:"
>       fmt_args = [classname, methodname]
> +
> +    spaces = len(stack) * ' '
> +    fmt_args.insert(0, spaces)

Why not:
spaces = len(stack) * ' '
fmt = "%s%s.%s:"
fmt_args = [spaces, classname, methodname]

Otherwise it is a nice thing, hopefully the call stack doesn't get so deep that the lines break on a normal terminal.

Ales

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux