Skip to content

Commit

Permalink
pylint enable used-before-assignment (#10335)
Browse files Browse the repository at this point in the history
  • Loading branch information
levbishop authored Jun 25, 2023
1 parent fbd64d9 commit b9b8564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ disable = [
"use-list-literal",
"use-implicit-booleaness-not-comparison",
"use-maxsplit-arg",
"used-before-assignment",
]

enable = [
Expand Down
4 changes: 2 additions & 2 deletions qiskit/circuit/library/standard_gates/x.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,9 @@ def qasm(self):
# exporter code (low priority), or we would need to modify 'qelib1.inc' which would be
# needlessly disruptive this late in OQ2's lifecycle. The current OQ2 exporter _always_
# outputs the `include 'qelib1.inc' line. ---Jake, 2022-11-21.
old_name = self.name
self.name = "c3sqrtx"
try:
old_name = self.name
self.name = "c3sqrtx"
return super().qasm()
finally:
self.name = old_name
Expand Down

0 comments on commit b9b8564

Please sign in to comment.