Skip to content

Commit 4229e17

Browse files
committed
Merge pull request #9 from felixonmars/patch-1
Fix an UnboundLocalError under Python 2
2 parents 090b1e4 + f765fb9 commit 4229e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

email_validator/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def main():
295295
# Strip newlines and skip blank lines and comments.
296296
line = line.strip()
297297
if line == "" or line[0] == "#": continue
298-
if sys.version_info < (3,): email = email.decode("utf8") # assume utf8 in input
298+
if sys.version_info < (3,): line = line.decode("utf8") # assume utf8 in input
299299

300300
# Pick up "[valid]"/"[invalid]" lines.
301301
if line == "[valid]":

0 commit comments

Comments
 (0)