Browse Source

python 2.x/3.x string support

Philippe Le Brouster 8 years ago
parent
commit
77b43f6183
1 changed files with 1 additions and 1 deletions
  1. 1 1
      himports/dolibarrAlchemyHledger.py

+ 1 - 1
himports/dolibarrAlchemyHledger.py

@@ -152,7 +152,7 @@ class HledgerBankEntry(HledgerEntry):
             for fn in fns:
                 try:
                     third_code = fn(e)
-                    if third_code is None or not isinstance(third_code, str):
+                    if third_code is None or not isinstance(third_code, basestring):
                         third_code = ""
                 except:
                     third_code = ""