[geneagrapher] 05/226: Modified isinstance calls for strings to return true for both str objects and unicode strings.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:10:30 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository geneagrapher.
commit 146abcba12194dc3ad240a6f5fce2244eb3f15e0
Author: David Alber <alber.david at gmail.com>
Date: Wed Apr 9 06:05:08 2008 +0000
Modified isinstance calls for strings to return true for both str objects and unicode strings.
---
src/GGraph.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/GGraph.py b/src/GGraph.py
index a0fe54f..9ad4f06 100644
--- a/src/GGraph.py
+++ b/src/GGraph.py
@@ -25,9 +25,9 @@ class Record:
self.id = id
# Verify we got the types wanted.
- if not isinstance(self.name, str):
+ if not isinstance(self.name, basestring):
raise TypeError("Unexpected parameter type: expected string value for 'name'")
- if not isinstance(self.institution, str):
+ if not isinstance(self.institution, basestring):
raise TypeError("Unexpected parameter type: expected string value for 'institution'")
if not isinstance(self.year, int):
raise TypeError("Unexpected parameter type: expected integer value for 'year'")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git
More information about the debian-science-commits
mailing list