mirror of
https://github.com/certbot/certbot.git
synced 2026-01-26 07:41:33 +03:00
* Drop support for EOL Python 2.6 * Use more helpful assertIn/NotIn instead of assertTrue/False * Drop support for EOL Python 3.3 * Remove redundant Python 3.3 code * Restore code for RHEL 6 and virtualenv for Py2.7 * Revert pipstrap.py to upstream * Merge py26_packages and non_py26_packages into all_packages * Revert changes to *-auto in root * Update by calling letsencrypt-auto-source/build.py * Revert permissions for pipstrap.py
12 lines
351 B
Python
12 lines
351 B
Python
import runpy
|
|
import sys
|
|
|
|
# Run Python's built-in HTTP server
|
|
# Usage: python ./tests/run_http_server.py port_num
|
|
# NOTE: This script should be compatible with 2.7, 3.4+
|
|
|
|
# sys.argv (port number) is passed as-is to the HTTP server module
|
|
runpy.run_module(
|
|
'http.server' if sys.version_info[0] == 3 else 'SimpleHTTPServer',
|
|
run_name='__main__')
|