Skip to content

Commit 43a226a

Browse files
authored
Merge pull request #140 from nodg/master
bugfix: codecs.open()
2 parents d2b68bc + b3d8f87 commit 43a226a

File tree

1 file changed

+2
-2
lines changed
  • PyFlow/Packages/PyFlowBase/FunctionLibraries

1 file changed

+2
-2
lines changed

PyFlow/Packages/PyFlowBase/FunctionLibraries/IOLib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def readAllLines(file=('StringPin', "", {PinSpecifiers.INPUT_WIDGET_VARIANT: "Fi
5656
error_msg=(REF, ('StringPin', ""))):
5757
err_msg = ""
5858
try:
59-
with codecs.open(file, encoding) as f:
59+
with codecs.open(file, encoding=encoding) as f:
6060
all_lines = list(f.readlines())
6161
except Exception as e:
6262
err_msg = str(e)
@@ -172,4 +172,4 @@ def httpUploadFile(url=('StringPin', ""),
172172

173173

174174

175-
175+

0 commit comments

Comments
 (0)