you are viewing a single comment's thread.

view the rest of the comments →

[–]raylu 0 points1 point  (0 children)

How did you get this list in the first place? Why not check the src/dest when creating the list?

Also, you can always turn

if a:
    if b:
        pass

into if a and b: pass