Skip to content

Commit

Permalink
deprecate nfelib.v4_00 1.x bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Apr 9, 2024
1 parent d80c4d4 commit 6998bd9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions nfelib/v4_00/leiauteNFe_sub.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,24 @@
import sys
import os
from lxml import etree as etree_
import warnings

sys.path.append(os.path.dirname(__file__))
import retEnviNFe as supermod


warnings.warn(
(
"These nfelib 1.x bindings (nfelib.v4_00; generated with GenerateDS) "
"are deprecated and will be removed after 01/06/2024. "
"\nYou should use the nfelib 2.x xsdata bindings in nfelib.nfe.bindings "
"instead.\nYou can learn about the migration process here: "
"https://github.com/akretion/nfelib/issues/59"
),
DeprecationWarning,
)


def parsexml_(infile, parser=None, keep_signature=False, **kwargs):
"accepts both NFe and nfeProc documents"

Expand Down

0 comments on commit 6998bd9

Please sign in to comment.