gpodder.util: Use gpodder.ui.win32 for new code

This commit is contained in:
Thomas Perl 2012-12-17 15:34:08 +01:00
parent faa9bb7916
commit ce461ff90d
1 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ import feedparser
import StringIO
import xml.dom.minidom
if gpodder.win32:
if gpodder.ui.win32:
try:
import win32file
except ImportError:
@ -422,7 +422,7 @@ def is_system_file(filename):
"""
Checks to see if the given file is a system file.
"""
if gpodder.win32 and win32file is not None:
if gpodder.ui.win32 and win32file is not None:
result = win32file.GetFileAttributes(filename)
#-1 is returned by GetFileAttributes when an error occurs
#0x4 is the FILE_ATTRIBUTE_SYSTEM constant