[gedit-latex] Fix file.py changes



commit 42e1b7f9c0f44fb5a38ca2a2d65dceba6dabeb5c
Author: John Stowers <john stowers gmail com>
Date:   Thu Jul 7 23:46:49 2011 +1200

    Fix file.py changes

 latex/base/file.py     |    8 +++++---
 latex/latex/dialogs.py |    3 ++-
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/latex/base/file.py b/latex/base/file.py
index 195c406..ea003e1 100644
--- a/latex/base/file.py
+++ b/latex/base/file.py
@@ -19,9 +19,11 @@
 # Street, Fifth Floor, Boston, MA  02110-1301, USA
 
 from os import remove
-import os.path
 from glob import glob
 
+import logging
+import os.path
+
 import re
 import urllib
 import urlparse
@@ -51,7 +53,7 @@ class File(object):
     def is_absolute(path):
         return os.path.isabs(path)
 
-    __log = getLogger("File")
+    __log = logging.getLogger("File")
 
     _DEFAULT_SCHEME = "file://"
 
@@ -263,7 +265,7 @@ class Folder(File):
     #
     # FIXME: but basically a Folder is a File so this class should not be needed
 
-    __log = getLogger("Folder")
+    __log = logging.getLogger("Folder")
 
     @property
     def files(self):
diff --git a/latex/latex/dialogs.py b/latex/latex/dialogs.py
index 99baa17..258a3b7 100644
--- a/latex/latex/dialogs.py
+++ b/latex/latex/dialogs.py
@@ -33,7 +33,8 @@ from gi.repository import Gtk, GdkPixbuf
 from ..preferences import Preferences
 from ..util import GladeInterface
 from ..base.resources import Resources
-from ..base import Template, File, Folder
+from ..base.file import File, Folder
+from ..base import Template
 
 from .preview import PreviewRenderer, ImageToolGenerator
 from .environment import Environment



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]