From 99204301074940a1921e0469295a4bf80250b40c Mon Sep 17 00:00:00 2001
From: Neal Norwitz <nnorwitz@gmail.com>
Date: Tue, 28 Oct 2003 21:57:10 +0000
Subject: SF #775057, fix IDLE problem in about dialog

If the file doesn't exist, the code to display an error message was broken
Will backport.
---
 Lib/idlelib/aboutDialog.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Lib/idlelib/aboutDialog.py b/Lib/idlelib/aboutDialog.py
index 8960b00..3d2bcf6 100644
--- a/Lib/idlelib/aboutDialog.py
+++ b/Lib/idlelib/aboutDialog.py
@@ -139,9 +139,11 @@ class AboutDialog(Toplevel):
             try:
                 textFile = codecs.open(fn, 'r')
             except IOError:
+                import tkMessageBox
                 tkMessageBox.showerror(title='File Load Error',
                                        message='Unable to load file '+
-                                       `fileName`+' .')
+                                       `fn`+' .',
+                                       parent=self)
                 return
             else:
                 data = textFile.read()
-- 
cgit v0.12

