💅 sort methods

This commit is contained in:
Mr. Outis
2019-11-25 22:30:05 -06:00
parent 64d102caaa
commit 2e7a6d3fe5
+9 -9
View File
@@ -37,15 +37,6 @@ def collect_and_send_report(arguments=None, exit_code=None):
subprocess.Popen(["python", "-m", "dvc.analytics", fobj.name])
def send(path):
url = "https://analytics.dvc.org"
with open(path) as fobj:
report = json.load(fobj)
requests.post(url, json=report, timeout=5)
def is_enabled():
if env2bool("DVC_TEST"):
return False
@@ -61,6 +52,15 @@ def is_enabled():
return enabled
def send(path):
url = "https://analytics.dvc.org"
with open(path) as fobj:
report = json.load(fobj)
requests.post(url, json=report, timeout=5)
def scm_in_use():
try:
scm = SCM(root_dir=Repo.find_root())