Skip to content
This repository has been archived by the owner on Sep 8, 2022. It is now read-only.

Commit

Permalink
fix provision in python 3.x (urlparse is 2.x only)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweaver committed Oct 29, 2014
1 parent d11e2af commit e3d2105
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions exoline/plugins/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
exo [options] provision sn delrange <model> <format> <first> <last> [--length=<digits>] [(--uppercase | --lowercase)]
exo [options] provision sn regen <model> <sn>
exo [options] provision sn disable <model> <sn>
exo [options] provision sn activate <vendor> <model> <sn>
exo [options] provision sn activate <vendor> <model> <sn>
Command Options:
-l --long Long listing
Expand All @@ -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():
Expand Down Expand Up @@ -126,7 +130,7 @@ def humanSize(size):
for afile in files:
mlist = pop.content_info(key, args['<model>'], afile)
mime,size,updated,meta,protected = mlist.body.strip().split(',')

# Format into human sizes
size = humanSize(size)
# Format into Human time
Expand Down

0 comments on commit e3d2105

Please sign in to comment.