mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
Fix for empty snippet files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1399,6 +1399,11 @@ class Snippet(Node):
|
||||
|
||||
while 1:
|
||||
tline = fid.readline()
|
||||
if not tline: # end of file
|
||||
code = ""
|
||||
fid.close()
|
||||
break
|
||||
|
||||
if not tline.strip():
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user