From: Chuck Lever Date: Wed, 26 Oct 2005 18:51:32 +0000 (-0400) Subject: Give the global "crt_series" variable a default value X-Git-Tag: v0.14.3~613 X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/commitdiff_plain/e7dc3866ae7dc43c8497080de2f541d44dd083d8?ds=sidebyside Give the global "crt_series" variable a default value The Python interpreter was searching every scope to find crt_series. By providing a default value, this reduces the amount of searching the interpreter does looking for crt_series. I've noticed that most commands are faster with this change. Signed-off-by: Chuck Lever --- diff --git a/stgit/commands/common.py b/stgit/commands/common.py index 575aae7..9747981 100644 --- a/stgit/commands/common.py +++ b/stgit/commands/common.py @@ -24,6 +24,8 @@ from optparse import OptionParser, make_option from stgit.utils import * from stgit import stack, git +crt_series = None + # Command exception class class CmdException(Exception):