Skip to content

Commit

Permalink
Let black format some files. (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseIgnacioTamayo committed Feb 11, 2024
1 parent 7613086 commit f078462
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 3 deletions.
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

0 comments on commit f078462

Please sign in to comment.