Changeset 32652ba62339…
Parent 38d566246d72…
by Benjamin Pollack
Changes to one file · Browse files at 32652ba62339 Showing diff from parent 38d566246d72 Diff from another changeset...
@@ -24,6 +24,7 @@ import ConfigParser
import cookielib
import getpass
+import json
import os
import shutil
import subprocess
@@ -87,9 +88,6 @@
return js
-def jseval(js):
- return eval(js, {"null":None, "true":True, "false":False})
-
def build_url(path):
url = server + path
return url.replace("://", "://%s:%s@" % (
@@ -97,7 +95,7 @@ urllib.quote(settings["password"], '')
))
-for repo in jseval(get_repos()):
+for repo in json.loads(get_repos()):
url = build_url(repo["url"])
name = os.path.split(repo["url"])[-1]
|
Loading...