# metachars -- special (or dangerous) chars: have some meaning for certain apps # $Id$ # Carlos Duarte , 000411/011109 # resume table (name, this(=)/all but this(!), list) sh = !"$&'()*;<>?[]`{|}~ uri (rfc2396) ! !$&'()*+,-./09:;=?@AZ\_az~ http ! !()*+,-./09:?AZ_az~ # URI/URL (RFC2396) quote(c) -> "0x" + hex(c) for c in uri: if c <= 0x20: quote(c) if c >= 0x7F: quote(c) if c in " <>#%\"{}|\\^[]`": quote(c) else leave c as is