summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2010-08-13 12:55:25 +0200
committerJesse Keating <jkeating@redhat.com>2010-08-19 10:49:06 -0700
commitb7298298036905bd1360193c2e90ace04e29ec44 (patch)
treea06827096e838a66655432bd602d87b4043d154d /src/fedpkg.py
parent3f0b3cb746f5029024b93399b8a4c84eaf570009 (diff)
downloadfedora-packager-b7298298036905bd1360193c2e90ace04e29ec44.tar.gz
fedora-packager-b7298298036905bd1360193c2e90ace04e29ec44.tar.xz
fedora-packager-b7298298036905bd1360193c2e90ace04e29ec44.zip
Avoid function calls as default param values
A function call used as a default parameter value is evaluated once when the module code is first read in. However, the os.getcwd() function might give different results at run time than at module reading time. This replaces those default param values with None, and has the function bodies call os.getcwd() if the param happens to be None. See also http://docs.python.org/reference/compound_stmts.html#function-definitions
Diffstat (limited to 'src/fedpkg.py')
0 files changed, 0 insertions, 0 deletions