-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
What is the lowest supported version of Python required? If it is at least 2.6, then you can throw away strings.Template templates and use str.format() (just don’t forget to double { and } where you want them; otherwise it is just matter of %s/\${/{/gc command). Whole strings module has been deprecated for years.
Also, if it is at least 2.7 then you can replace all those complicated constructs with subprocess.Popen() with if subprocess.call(...) != 0:. A way less readable IMHO and you save some unnecessary variables.
Metadata
Metadata
Assignees
Labels
No labels