Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 37b3c15

Browse files
author
Jay Logue
authored
Merge pull request #394 from openweave/issue/python-tlvwriter-reuse
Fix for bug in Python TLVWriter
2 parents 71f49e3 + a60ae79 commit 37b3c15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/factory-prov-tool/WeaveTLV.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@
6969

7070
class TLVWriter(object):
7171

72-
def __init__(self, encoding=bytearray(), implicitProfile=None):
73-
self._encoding = encoding
72+
def __init__(self, encoding=None, implicitProfile=None):
73+
self._encoding = encoding if encoding is not None else bytearray()
7474
self._implicitProfile = implicitProfile
7575
self._containerStack = []
7676

0 commit comments

Comments
 (0)