forked from 0x2620/pandora
use python for now
This commit is contained in:
parent
2f6e7d39c9
commit
2c678ec450
2 changed files with 8 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env python
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/python
|
||||
from __future__ import print_function
|
||||
import os
|
||||
|
||||
|
@ -14,7 +14,10 @@ with open(activate_this) as f:
|
|||
import sys
|
||||
import shutil
|
||||
import subprocess
|
||||
import urllib.request
|
||||
try:
|
||||
from urllib.request import urlopen
|
||||
except:
|
||||
from urllib2 import urlopen
|
||||
import json
|
||||
from os.path import join, exists
|
||||
|
||||
|
@ -29,7 +32,7 @@ def get(*cmd):
|
|||
return stdout.decode()
|
||||
|
||||
def get_json(url):
|
||||
return json.loads(urllib.request.urlopen(url).read().decode())
|
||||
return json.loads(urlopen(url).read().decode())
|
||||
|
||||
def get_release():
|
||||
if os.path.exists('.release'):
|
||||
|
|
Loading…
Reference in a new issue