diff options
author | VG <vg@devys.org> | 2014-11-28 21:16:09 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2014-11-28 21:16:09 +0100 |
commit | 20b89a46aeeeea3790fcabd2330ad58c2f9c119b (patch) | |
tree | b51cebb0ab2bc7a74f35928a9a6c198b61ead9a4 | |
parent | 460e2bbb1dd6e2dfd519338c590aec7ab9830ecb (diff) | |
parent | e7712e97cacd601fd04b7bfd0b3084d6107a73b2 (diff) | |
download | pasteme-20b89a46aeeeea3790fcabd2330ad58c2f9c119b.tar.gz pasteme-20b89a46aeeeea3790fcabd2330ad58c2f9c119b.tar.bz2 pasteme-20b89a46aeeeea3790fcabd2330ad58c2f9c119b.zip |
Merge branch 'dev' of git://0x1707.no-ip.biz/pasteme into dev
-rwxr-xr-x | pasteme.py | 2 | ||||
-rwxr-xr-x | scripts/pastit.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ from pathlib import Path application = bottle.default_app() # application used for wsgi mode pathbase = Path(config.pastedir) -pygment_formater = pygments.formatters.HtmlFormatter() +pygment_formater = pygments.formatters.HtmlFormatter(linenos="table") if not pathbase.exists(): pathbase.mkdir(mode=0o700, parents=True) diff --git a/scripts/pastit.py b/scripts/pastit.py index 3a61e19..3527b4f 100755 --- a/scripts/pastit.py +++ b/scripts/pastit.py @@ -50,7 +50,7 @@ def get(url): def main(): args = docopt(__doc__) - if '://' in args["FILE"]: + if args["FILE"] and '://' in args["FILE"]: print(get(args["FILE"])) return |