cooperdk / YAPO-e-plus

YAPO e+ - Yet Another Porn Organizer (extended)
https://github.com/cooperdk/YAPO-e-plus
GNU General Public License v3.0
144 stars 15 forks source link

first attempt to clean up a few things #25

Closed ghost closed 4 years ago

ghost commented 4 years ago

file reformat fixed string building on a few places cleanup of file open without 'with' statement

cooperdk commented 4 years ago

I get it :-) But, if I'm not mistaken, the statement

print("This is the variable: {}".format(x))

is the former suggested variant of the f-string formatting

print(f"This is the variable: {x}")

The latter supported by Python 3.6 onward.

I used these a lot of places, and since YAPO likely won't work on Python 3.6 or later, wouldn't the latter be better?

ghost commented 4 years ago

you are absolutely correct, print(f"This is the variable: {x}") is the better variant