Skip to content

Instantly share code, notes, and snippets.

Avatar

Olivier Lance olance

View GitHub Profile
@olance
olance / parse_nested_query.py
Last active Aug 29, 2015 — forked from john1king/parse_nested_query.py
Parses a query string to obtain a params dict as it's done in Rails using Rack's Utils lib.
View parse_nested_query.py
# This is a port from https://github.com/rack/rack/blob/master/lib/rack/utils.rb from john1king,
# forked to be fixed, completed & documented
import re
import urllib
class RangeError(Exception):
pass