better extension parsing, thanks Corne

This commit is contained in:
mdipierro
2012-06-28 09:56:53 -05:00
parent e2928706a6
commit ffae332ad3
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ def URL(
extension = None
if '.' in function:
function, extension = function.split('.', 1)
function, extension = function.rsplit('.', 1)
function2 = '%s.%s' % (function,extension or 'html')