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 b77efd0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Changes

:unreleased:

- drop python 2.6 support / six dependency
- switch build infrastructure to pytest and GitHub Actions
- switch to `.bower.json` as per recommendation - thanks `@ivelin`_
- Fix ModuleNotFoundError - thanks `@jeffhung`_
Expand Down
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 b77efd0

Please sign in to comment.