diff options
author | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2015-10-17 10:43:01 -0500 |
---|---|---|
committer | Andrew Wilcox <AWilcox@Wilcox-Tech.com> | 2015-10-17 10:43:01 -0500 |
commit | 8682dc7bf1498fed8dbe43e3d9d3d74a108439c0 (patch) | |
tree | 59bca65599a00b0f4aea0247cf8ffcf8280d3d83 | |
parent | fa9d3308fa1cd4c3a61a348659b6ecf23d8a3085 (diff) | |
download | apkkit-8682dc7bf1498fed8dbe43e3d9d3d74a108439c0.tar.gz apkkit-8682dc7bf1498fed8dbe43e3d9d3d74a108439c0.tar.bz2 apkkit-8682dc7bf1498fed8dbe43e3d9d3d74a108439c0.tar.xz apkkit-8682dc7bf1498fed8dbe43e3d9d3d74a108439c0.zip |
Package: use os.getenv instead
-rw-r--r-- | apkkit/base/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apkkit/base/package.py b/apkkit/base/package.py index 9985e6b..15ecb2c 100644 --- a/apkkit/base/package.py +++ b/apkkit/base/package.py @@ -123,7 +123,7 @@ class Package: .. note:: To write a file, see the :py:meth:`.write_pkginfo` helper method. """ - return PKGINFO_TEMPLATE.render(builduser=os.environ.get('USER', '?'), + return PKGINFO_TEMPLATE.render(builduser=os.getenv('USER', '?'), buildhost=os.uname().nodename, package=self) |