Skip to content

Commit ebfae45

Browse files
loran425loran425
authored andcommitted
make sure that upc.build is making a copy of the _upc.EDGE item instead of just refencing it.
1 parent 8c5c645 commit ebfae45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

barcode/upc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def build(self):
7676
:return: The pattern as string
7777
:rtype: String
7878
"""
79-
code = _upc.EDGE
79+
code = _upc.EDGE[:]
8080

8181
for i, number in enumerate(self.upc[0:6]):
8282
code += _upc.CODES['L'][int(number)]

0 commit comments

Comments
 (0)