redbaron
redbaron copied to clipboard
Tuple white space problem
Hello,
this code: print("__loader__ present:", __loader__ is not None)
was false modified
by the following code: tuple_node.value.node_list[-1].second_formatting = ""
This worked for many cases, as far I can see, but in this case, of tuple (not having
print_function from __future__
there, btw), it fails and changes code to:
print("__loader__ present:", __loader__ is notNone)
Not sure, if that space should be removable, and would be a bug itself. What I then did was to do formatted output with help of these:
print("__loader__ present:", __loader__ is not None)
print("__loader__ present:", __loader__ is not None )
Notice the trailing space of the tuple, the one I am trying to remove.
node.help(deep = True, with_formatting = True)
on these gives the same output.
Not so sure, if second_formatting is the wrong space here, but I am nearly sure, it's not OK for the trailing space to not show up.
Please advise, Kay
Hi, @kayhayen
I edited your post to highlight the code source. Thanks for reporting this, I'll look (or @Psycojoker) into it next week.