Removed pedant if check in URL()

This commit is contained in:
gi0baro
2013-11-18 01:12:37 +01:00
parent e83bb7af29
commit 2bf1f5396f

View File

@@ -294,10 +294,9 @@ def URL(
from globals import current
if hasattr(current, 'response'):
response = current.response
if response:
if response.static_version and response.static_version_urls:
args = [function] + args
function = '_'+str(response.static_version)
if response.static_version and response.static_version_urls:
args = [function] + args
function = '_'+str(response.static_version)
if '.' in function:
function, extension = function.rsplit('.', 1)