Skip to content

Commit

Permalink
try import sendfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Zanke committed May 16, 2017
1 parent 23919b4 commit f7357a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion djangodav/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
from djangodav import VERSION as djangodav_version
from django import VERSION as django_version, get_version

from sendfile import sendfile
try:
import sendfile
except ImportError:
sendfile = None

PATTERN_IF_DELIMITER = re.compile(r'(<([^>]+)>)|(\(([^\)]+)\))')

Expand Down

0 comments on commit f7357a7

Please sign in to comment.