334 mkdir(path.join(prefix, "share/gochan/templates/override/"))
335 except shutil.SameFileError as err:
336 print(err)
337 except FileNotFoundError as err:338 if file == "html/js/":
339 print("Missing html/js directory, this must be built before installation by running python3 build.py js, or mkdir html/js if you don't want JavaScript")
340 else:
An unused variable takes up space in the code, and can lead to confusion, and it should be removed. If this variable is necessary, name the variable _
to indicate that it will be unused, or start the name with unused
or _unused
.
def update():
for i in range(10): # Usused variable `i`
time.sleep(0.01)
display_result()
def update():
for _ in range(10):
time.sleep(0.01)
display_result()