diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2010-08-13 12:55:25 +0200 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2010-08-19 10:49:06 -0700 |
commit | b7298298036905bd1360193c2e90ace04e29ec44 (patch) | |
tree | a06827096e838a66655432bd602d87b4043d154d /src/fedpkg.py | |
parent | 3f0b3cb746f5029024b93399b8a4c84eaf570009 (diff) | |
download | fedora-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