X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/74081c8b2e9a8588505c40257556e17274fc80de..84d7dc51e9a98aa65989da1f32e93b2fd4d6a0e0:/apps/filebrowser/templatetags/fb_tags.py diff --git a/apps/filebrowser/templatetags/fb_tags.py b/apps/filebrowser/templatetags/fb_tags.py index 21aed146..5bc9b401 100644 --- a/apps/filebrowser/templatetags/fb_tags.py +++ b/apps/filebrowser/templatetags/fb_tags.py @@ -74,7 +74,7 @@ def string_to_dict(string): if string: string = str(string) - args = (arg.strip() for arg in string.split(',') if not arg.iswhitespace()) + args = (arg.strip() for arg in string.split(',') if not arg.isspace()) kwargs.update(arg.split('=', 1) for arg in args) return kwargs