X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/6ac0f3c83c7f2b916038acfed564ba6c7fe8e9f4..7ce928e114b798a45a94f933c8eb69b96009f989:/src/minwii/logfilereader.py?ds=inline diff --git a/src/minwii/logfilereader.py b/src/minwii/logfilereader.py index 648cdee..b7f84a1 100755 --- a/src/minwii/logfilereader.py +++ b/src/minwii/logfilereader.py @@ -6,6 +6,7 @@ $Id$ $URL$ """ +from types import StringTypes from widgets.playingscreen import PlayingScreenBase from eventutils import EventDispatcher from events import eventCodes @@ -34,7 +35,7 @@ class LogFileReader(object) : """ logfile : chemin d'accès au fichier de log MinWii. le format supporté est actuellement la version 1.0 uniquement. """ - if isinstance(logfile, str) : + if isinstance(logfile, StringTypes) : self.logfile = open(logfile, 'r') else : self.logfile = logfile