Mercurial > repo
changeset 12160:2c8c313864e7 draft
<fizzie> slbd wiki//6,7d;s/quote(f)/quote(sys.argv[1])/
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Tue, 19 Nov 2019 01:22:24 +0000 |
parents | c641aac6a6d0 |
children | b776d8e310e6 |
files | bin/wiki |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/wiki Mon Nov 18 22:21:54 2019 +0000 +++ b/bin/wiki Tue Nov 19 01:22:24 2019 +0000 @@ -3,7 +3,5 @@ if len(sys.argv) <= 1: print "https://esolangs.org/" else: - f = os.path.abspath(sys.argv[1]) - if f.startswith('/hackenv/'): f = f[9:] print ("https://esolangs.org/wiki/" + - urllib.quote(f)) + urllib.quote(sys.argv[1]))