From 025c8a5e915ce4a66f145daae77cbd3c5c74d19d Mon Sep 17 00:00:00 2001 From: Rory McCann Date: Sun, 10 Feb 2008 23:26:21 +0000 Subject: [PATCH] s/basestr/basestring/g --- pythonicgtk.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pythonicgtk.py b/pythonicgtk.py index b5376ce..120bc95 100644 --- a/pythonicgtk.py +++ b/pythonicgtk.py @@ -286,7 +286,7 @@ class ComboBox(gtk.ComboBox, PythonicWidget): active = None for index, row in enumerate( rows ): - if isinstance( row, basestr ): + if isinstance( row, basestring ): text = row else: text = row[0] @@ -305,7 +305,7 @@ class Notebook(gtk.Notebook, PythonicWidget): PythonicWidget.__init__(self, **kwargs) for page_name, page_contents in pages: - if isinstance(page_name, basestr): + if isinstance(page_name, basestring): page_name = Label( page_name ) self.append_page( child=page_contents, tab_label=page_name ) @@ -371,7 +371,7 @@ class ListBox(gtk.TreeView, PythonicWidget): # We assume they are all text columns for now # TODO allow the caller to change this. for index, col in enumerate(columns): - if isinstance( col, basestr ): + if isinstance( col, basestring ): type = str else: pass -- 2.11.4.GIT