Skip to content

Commit 0b7e621

Browse files
PierreRochardpetertodd
authored andcommitted
output/outpoint switcharoo
1 parent 5109241 commit 0b7e621

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bitcoin/core/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,11 @@ def __str__(self):
160160
def from_outpoint(cls, outpoint):
161161
"""Create an immutable copy of an existing OutPoint
162162
163-
If output is already immutable (outpoint.__class__ is COutPoint) it is
163+
If outpoint is already immutable (outpoint.__class__ is COutPoint) it is
164164
returned directly.
165165
"""
166-
if output.__class__ is COutPoint:
167-
return output
166+
if outpoint.__class__ is COutPoint:
167+
return outpoint
168168

169169
else:
170170
return cls(outpoint.hash, outpoint.n)

0 commit comments

Comments
 (0)