mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Use % instead of format for consistency (and Python 2.6 support)
This commit is contained in:
parent
dd6063ccb6
commit
e9935ae1a6
2 changed files with 5 additions and 6 deletions
|
@ -411,11 +411,11 @@ class Calendar(object):
|
|||
def owner_url(self):
|
||||
"""Get the calendar URL according to its owner."""
|
||||
if self.owner:
|
||||
return '/{}/'.format(self.owner).replace('//', '/')
|
||||
return ('/%s/' % self.owner).replace('//', '/')
|
||||
else:
|
||||
return None
|
||||
|
||||
@property
|
||||
def url(self):
|
||||
"""Get the standard calendar URL."""
|
||||
return '/{}/'.format(self.local_path).replace('//', '/')
|
||||
return ('/%s/' % self.local_path).replace('//', '/')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue