Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions flask_store/providers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

import os
import shortuuid
try:
import urlparse
except ImportError:
import urllib.parse as urlparse

from flask import current_app
from flask_store.utils import is_path, path_to_uri
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def read_requirements(filename):
line = line.strip()
if not line or line.startswith(b'#') or line == '':
continue
requirements.append(line.decode('utf-8'))
if isinstance(line, bytes):
line = line.decode()
requirements.append(line)
except IOError:
warnings.warn('{0} was not found'.format(filename))

Expand Down