Skip to content

Commit

Permalink
Use Feedparser 6 on Python 3.6+
Browse files Browse the repository at this point in the history
Also restructure tests to use unittest, don't install pathlib on 3.6+
  • Loading branch information
urschrei committed Oct 11, 2021
1 parent f6b5ee2 commit cdb21c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyzotero/zotero.py
Expand Up @@ -33,7 +33,7 @@
from __future__ import unicode_literals

__author__ = "Stephan Hügel"
__version__ = "1.4.25"
__version__ = "1.4.26"
__api_version__ = "3"

import sys
Expand Down Expand Up @@ -106,8 +106,8 @@ def token():
return str(uuid.uuid4().hex)

if sys.version_info[0] == 2:
# Override feedparser's buggy isBase64 method until they fix it
# Note: this is fixed in v6.x, but we can't switch to it because it doesn't support Python 2.7
# Override feedparser 5's buggy isBase64 method
# Note: this is fixed in v6.x, so we only apply the patch in Python 2.7
feedparser._FeedParserMixin._isBase64 = ib64_patched


Expand Down

0 comments on commit cdb21c1

Please sign in to comment.