Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let black format some files. #338

Merged
merged 1 commit into from
Feb 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyangbind/helpers/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

import sys


Expand Down
1 change: 1 addition & 0 deletions pyangbind/lib/pybindJSON.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from __future__ import unicode_literals

import copy
Expand Down
1 change: 1 addition & 0 deletions pyangbind/lib/serialise.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* module containing methods to serialise pyangbind class hierarchie
to various data encodings. XML and/or JSON as the primary examples.
"""

from __future__ import unicode_literals

import json
Expand Down
1 change: 1 addition & 0 deletions pyangbind/lib/xpathhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
This module maintains an XML ElementTree for the registered Python
classes, so that XPATH can be used to lookup particular items.
"""

from __future__ import unicode_literals

import uuid
Expand Down
1 change: 1 addition & 0 deletions pyangbind/lib/yangtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from __future__ import unicode_literals

import base64
Expand Down
9 changes: 6 additions & 3 deletions pyangbind/plugin/pybind.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""

from __future__ import unicode_literals

import copy
Expand Down Expand Up @@ -1153,9 +1154,11 @@ def _set_%s(self, v, load=False):
% (
i["name"],
i["origtype"],
"%s:%s" % (i["defining_module"], i["origtype"])
if ":" not in i["origtype"] and not i["origtype"] in YANG_BUILTIN_TYPES
else i["origtype"],
(
"%s:%s" % (i["defining_module"], i["origtype"])
if ":" not in i["origtype"] and not i["origtype"] in YANG_BUILTIN_TYPES
else i["origtype"]
),
c_str["type"],
c_str["arg"],
)
Expand Down
Loading