Skip to content

Commit a4bd3bd

Browse files
Fix Python header formatting (robshakir#359)
Spaces between import blocks
1 parent 35fb9a8 commit a4bd3bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pyangbind/plugin/pybind.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,15 +323,15 @@ def build_pybind(ctx, modules, fd):
323323
]
324324
for library in yangtypes_imports:
325325
ctx.pybind_common_hdr += "from pyangbind.lib.yangtypes import {}\n".format(library)
326-
ctx.pybind_common_hdr += "from pyangbind.lib.base import PybindBase\n"
327-
ctx.pybind_common_hdr += "from collections import OrderedDict\n"
328-
ctx.pybind_common_hdr += "from decimal import Decimal\n"
326+
ctx.pybind_common_hdr += """from pyangbind.lib.base import PybindBase
327+
from collections import OrderedDict
328+
from decimal import Decimal
329329
330-
ctx.pybind_common_hdr += """
331330
import builtins as __builtin__
331+
332332
long = int
333-
"""
334333
334+
"""
335335
if not ctx.opts.split_class_dir:
336336
fd.write(ctx.pybind_common_hdr)
337337
else:

0 commit comments

Comments
 (0)