diff --git a/.idea/cakecms-python-api.iml b/.idea/cakecms-python-api.iml index 4378dc6..4c305b3 100644 --- a/.idea/cakecms-python-api.iml +++ b/.idea/cakecms-python-api.iml @@ -2,7 +2,7 @@ - + diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index df2c7a2..904ef0d 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -4,9 +4,12 @@ diff --git a/.idea/misc.xml b/.idea/misc.xml index d33d5e8..b524304 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,17 +1,7 @@ - - - - - - - - - - - + - \ No newline at end of file diff --git a/cakecms/__init__.py b/cakecms/__init__.py index a8a2126..25f1085 100644 --- a/cakecms/__init__.py +++ b/cakecms/__init__.py @@ -1 +1 @@ -from cakecms import CakeCMS +from .cakecms import CakeCMS diff --git a/cakecms/cakecms.py b/cakecms/cakecms.py index b30c8d1..185bdd2 100644 --- a/cakecms/cakecms.py +++ b/cakecms/cakecms.py @@ -1,14 +1,14 @@ from __future__ import unicode_literals from __future__ import print_function import requests -import urllib +import urllib.parse import json import collections import datetime def quote_named_param(p): - return urllib.quote(str(p)).replace('/', '%2f') + return urllib.parse.quote(str(p)).replace('/', '%2f') def json_decode_ordered(txt):