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:
Robin Dunn
2012-07-18 16:30:46 +00:00
parent 11e29f9425
commit 12c69fa054

View File

@@ -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