Skip to content

Commit

Permalink
Fix Python header formatting (#359)
Browse files Browse the repository at this point in the history
Spaces between import blocks
  • Loading branch information
JoseIgnacioTamayo authored Sep 12, 2024
1 parent 35fb9a8 commit a4bd3bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pyangbind/plugin/pybind.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,15 +323,15 @@ def build_pybind(ctx, modules, fd):
]
for library in yangtypes_imports:
ctx.pybind_common_hdr += "from pyangbind.lib.yangtypes import {}\n".format(library)
ctx.pybind_common_hdr += "from pyangbind.lib.base import PybindBase\n"
ctx.pybind_common_hdr += "from collections import OrderedDict\n"
ctx.pybind_common_hdr += "from decimal import Decimal\n"
ctx.pybind_common_hdr += """from pyangbind.lib.base import PybindBase
from collections import OrderedDict
from decimal import Decimal
ctx.pybind_common_hdr += """
import builtins as __builtin__
long = int
"""
"""
if not ctx.opts.split_class_dir:
fd.write(ctx.pybind_common_hdr)
else:
Expand Down

0 comments on commit a4bd3bd

Please sign in to comment.