Skip to content

Commit

Permalink
drop python2 support / six
Browse files Browse the repository at this point in the history
  • Loading branch information
lobeck committed Dec 26, 2023
1 parent 2afed74 commit f023e55
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
9 changes: 1 addition & 8 deletions flask_bower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
# coding=utf8
import os
from flask import abort, json, send_file, Blueprint, current_app, url_for
import sys

from six import reraise


def validate_parameter(param):
Expand Down Expand Up @@ -59,11 +56,7 @@ def handle_url_error(error, endpoint, values):
"""
url = overlay_url_for(endpoint, **values)
if url is None:
exc_type, exc_value, tb = sys.exc_info()
if exc_value is error:
reraise(exc_type, exc_value, tb)
else:
raise error
raise error
# url_for will use this result, instead of raising BuildError.
return url

Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
-e git+https://github.com/pallets/flask.git#egg=flask
six

0 comments on commit f023e55

Please sign in to comment.