2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-23 12:39:01 +00:00

Fixes bench release github username error (#406)

* ran 2to3 script

* Correct urllib.parse import

* Backward compatible urllib import

* removed test_setup_production_v6

* Fix bug global hashlib is not defined (#399)

* Don't need $query_string (#390)

* removed semicolon, click.prompt adds it
This commit is contained in:
Revant Nandgaonkar 2017-05-22 15:07:21 +05:30 committed by Rushabh Mehta
parent 485d10089a
commit de0d88c0fa
3 changed files with 3 additions and 3 deletions

View File

@ -128,7 +128,7 @@ server {
{% endfor -%} {% endfor -%}
; ;
return 301 https://$host$request_uri?$query_string; return 301 https://$host$request_uri;
} }
{% endif %} {% endif %}

View File

@ -38,7 +38,7 @@ def validate(bench_path):
github_password = config.get('github_password') github_password = config.get('github_password')
if not github_username: if not github_username:
github_username = input('Username: ') github_username = click.prompt('Username', type=str)
if not github_password: if not github_password:
github_password = getpass.getpass() github_password = getpass.getpass()

View File

@ -1,4 +1,4 @@
import os, sys, shutil, subprocess, logging, itertools, requests, json, platform, select, pwd, grp, multiprocessing import os, sys, shutil, subprocess, logging, itertools, requests, json, platform, select, pwd, grp, multiprocessing, hashlib
from distutils.spawn import find_executable from distutils.spawn import find_executable
import bench import bench
from bench import env from bench import env