This commit is contained in:
Barış Metin
2006-04-13 18:29:11 +00:00
parent 29a3164d32
commit e8cd811120
+1 -1
View File
@@ -63,7 +63,7 @@ class File:
"handle URI arg"
if type(uri) == types.StringType or type(uri) == types.UnicodeType:
uri = URI(uri)
elif isinstance(uri, URI):
elif not isinstance(uri, URI):
raise Error(_("uri must have type either URI or string"))
return uri