diff --git a/exoline/plugins/provision.py b/exoline/plugins/provision.py index 8f564ea..2dfe30b 100644 --- a/exoline/plugins/provision.py +++ b/exoline/plugins/provision.py @@ -20,7 +20,7 @@ exo [options] provision sn delrange [--length=] [(--uppercase | --lowercase)] exo [options] provision sn regen exo [options] provision sn disable - exo [options] provision sn activate + exo [options] provision sn activate Command Options: -l --long Long listing @@ -39,7 +39,11 @@ import re import json import urllib, mimetypes -import urlparse +import six +if six.PY3: + import urllib.parse as urlparse +else: + import urlparse import time class Plugin(): @@ -126,7 +130,7 @@ def humanSize(size): for afile in files: mlist = pop.content_info(key, args[''], afile) mime,size,updated,meta,protected = mlist.body.strip().split(',') - + # Format into human sizes size = humanSize(size) # Format into Human time