summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@hotmail.com>2013-09-22 19:30:54 -0400
committerAnthony G. Basile <blueness@gentoo.org>2013-09-24 14:19:37 -0400
commitafa258cf46649321d12bb4d408b69ec9b35439c1 (patch)
treecf6cd49e51f802c6a750e9bafbc82e18dc43748a
parentWebappconfig/{config.py,worker.py}: Adds configurable --copy option. (diff)
downloadwebapp-config-afa258cf46649321d12bb4d408b69ec9b35439c1.tar.gz
webapp-config-afa258cf46649321d12bb4d408b69ec9b35439c1.tar.bz2
webapp-config-afa258cf46649321d12bb4d408b69ec9b35439c1.zip
WebappConfig/permissions.py: Corrected syntax for eval() function.
When the permissions octal was being passed to the eval() function they were previously not being evaluated with python3.2 due to the fact that the octal value was not being declared as an octal. To fix this, it was simply stated that the octal value was one by appending '0o' to the values being piped into the eval() function. X-GENTOO-BUG: 481298 X-GENTOO-BUG-URL: https://bugs.gentoo.org/481298 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--WebappConfig/permissions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebappConfig/permissions.py b/WebappConfig/permissions.py
index ad65df1..2e506e1 100644
--- a/WebappConfig/permissions.py
+++ b/WebappConfig/permissions.py
@@ -161,7 +161,7 @@ class PermissionMap:
if re.compile('[0-7]{4}').match(permissions):
self.__absolute = True
- self.__permissions = eval(permissions)
+ self.__permissions = eval("0o"+permissions)
else:
# Split on commas first