Skip to content

Commit

Permalink
Change str for basestring
Browse files Browse the repository at this point in the history
  • Loading branch information
guilleJB committed Oct 23, 2015
1 parent fd5292e commit e9add58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bankbarcode/cuaderno57.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _check_due_date(self, due_date, suffix):
name = 'due_date'
if due_date is None:
return True
if isinstance(due_date, str):
if isinstance(due_date, basestring):
try:
date = datetime.strptime(due_date, '%Y-%m-%d')
except:
Expand Down Expand Up @@ -244,7 +244,7 @@ def due_date(self, due_date):
self._due_date = None
else:
if self._check_due_date(due_date, self.suffix):
if isinstance(due_date, str):
if isinstance(due_date, basestring):
due_date = datetime.strptime(due_date, '%Y-%m-%d')
self._due_date = due_date
self._notice = self._due_date.strftime('%d%m%y')
Expand Down

0 comments on commit e9add58

Please sign in to comment.