From efbccef2a19841ccc67e962f5b3794c73474219c Mon Sep 17 00:00:00 2001 From: Jonas Kulhanek Date: Wed, 26 Feb 2020 14:57:35 +0100 Subject: [PATCH] fix pubkey for python3.x --- pubs/bibstruct.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pubs/bibstruct.py b/pubs/bibstruct.py index 91b3a7d..de72a36 100644 --- a/pubs/bibstruct.py +++ b/pubs/bibstruct.py @@ -1,4 +1,11 @@ from __future__ import unicode_literals +try : + import __builtin__ +except: + # Python 3.x + import builtins + if 'unicode' not in builtins.__dict__.keys(): + unicode = str import unicodedata import re @@ -6,6 +13,7 @@ from string import Formatter from .p3 import ustr, uchr + # Citekey stuff TYPE_KEY = 'type'