Skip to content

Commit 8e5ea18

Browse files
Linux UserLinux User
Linux User
authored and
Linux User
committed
condensed/refactored fix_unpacking.py change
1 parent 4cafc9d commit 8e5ea18

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libpasteurize/fixes/fix_unpacking.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ def assignment_source(num_pre, num_post, LISTNAME, ITERNAME):
2020
children = []
2121
try:
2222
pre = unicode(num_pre)
23-
except NameError:
24-
pre = str(num_pre)
25-
try:
2623
post = unicode(num_post)
2724
except NameError:
25+
pre = str(num_pre)
2826
post = str(num_post)
2927
# This code builds the assignment source from lib2to3 tree primitives.
3028
# It's not very readable, but it seems like the most correct way to do it.

0 commit comments

Comments
 (0)