From 4949f3021aa64d80672f72c90a6cb5754b733c2e Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Tue, 29 Jan 2013 19:34:38 +0000 Subject: [PATCH] Python versions `>=2.7` do not have a `__main__` in `urllib`. --- README.rst | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index ed39059..6e1fa74 100644 --- a/README.rst +++ b/README.rst @@ -48,13 +48,21 @@ If you have certificate issues using ``wget`` try the following: -If you already have python installed, then it's as easy as: +If you already have python installed, ``python 2.6``, then it's as easy as: .. code:: console python -m urllib "http://bootstrap.saltstack.org" | sudo sh -s -- git develop +All python versions should support the following one liner: + +.. code:: console + + python -c 'import urllib; print urllib.urlopen("http://bootstrap.saltstack.org").read()' | \ + sudo sh -s -- git develop + + On a FreeBSD base system you usually don't have either of the above binaries available. You **do** have ``fetch`` available though: