X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/24c1d259ba4af084959d70c6a1f355d0a57f1191..f4ef2a001a939444826ad0df962a814ba97e9185:/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