Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

For Python3, the tuple and list types should be used instead of ListT…

…ype and TupleType
  • Loading branch information...
commit 65af8d809514b474f1e8d3ab622c37d4ffdca641 1 parent 69ff419
@iherman iherman authored
Showing with 3 additions and 7 deletions.
  1. +3 −7 pyRdfa/state.py
View
10 pyRdfa/state.py
@@ -17,8 +17,8 @@
"""
"""
-$Id: state.py,v 1.21 2012/08/20 14:14:14 ivan Exp $
-$Date: 2012/08/20 14:14:14 $
+$Id: state.py,v 1.22 2012/10/10 15:19:43 ivan Exp $
+$Date: 2012/10/10 15:19:43 $
"""
import sys
(py_v_major, py_v_minor, py_v_micro, py_v_final, py_v_serial) = sys.version_info
@@ -50,15 +50,11 @@
from . import err_non_legal_CURIE_ref
from . import err_undefined_CURIE
-import re
-import random
if py_v_major >= 3 :
from urllib.parse import urlparse, urlunparse, urlsplit, urljoin
else :
from urlparse import urlparse, urlunparse, urlsplit, urljoin
-from types import *
-
class ListStructure :
"""Special class to handle the C{@inlist} type structures in RDFa 1.1; stores the "origin", i.e,
where the list will be attached to, and the mappings as defined in the spec.
@@ -475,7 +471,7 @@ def getResource(self, *args) :
"""
if len(args) == 0 :
return None
- if isinstance(args[0], TupleType) or isinstance(args[0], ListType) :
+ if isinstance(args[0], tuple) or isinstance(args[0], list) :
rargs = args[0]
else :
rargs = args
Please sign in to comment.
Something went wrong with that request. Please try again.