Commit Graph

35 Commits

Author SHA1 Message Date
Zuul afb0d7f736 Merge "Fix sort comparison function" 2020-03-17 23:20:12 +00:00
Zuul 70d9a499d7 Merge "Removes unnecessary utf-8 encoding" 2020-03-06 01:49:51 +00:00
Clark Boylan 18a2ac5b21 Fix sort comparison function
In python3 you can't use a cmp function and have to use a key function
when sorting. Python2 supports both so we switch to a key function that
takes a single arg in the sort of supported languages in the pasting
script.

Change-Id: Ib49bcb22653bd577078a386750027fc5acee3180
2020-03-05 12:10:05 -08:00
Iswarya_Vakati a1af412914 Removes unnecessary utf-8 encoding
This patches removes unnecessary utf-8 encoding

Change-Id: Ic4c35e70df0a1f3714c9a144c4b7fed9cd893aa2
2020-03-05 11:17:04 +00:00
Tristan Cacqueray 9b854e7729 Fix python3 compatibility issue
This change fix python3 compatibility:
* replace except obj, name with except obj as name
* use print function
* replace iteritems by six.iteritems
* replace xrange by range
* convert items() result to list

Change-Id: I70364e47541274d446c4449f820dce3e0b331b27
2020-03-04 13:09:24 -06:00
David Pursehouse fbb61e9c1d Add tox configuration to enable PEP-8 checks, and fix various failures
- E126 continuation line over-indented for hanging indent
- E127 continuation line over-indented for visual indent
- E128 continuation line under-indented for visual indent
- E131 continuation line unaligned for hanging indent
- E265 block comment should start with '# '
- E272 multiple spaces before keyword
- E302 expected 2 blank lines, found <n>
- E712 comparison to False should be 'if cond is False:' or 'if not cond:'
- F401 '<name>' imported but unused

Change-Id: I2344cf2e8fd7910e72e9d8043423d25e43065ef2
2015-11-17 19:09:23 +09:00
David Pursehouse bfaffa7ddc lodgeit.py: Set default URL to paste.openstack.org
Change-Id: Ib88093fadaa2043c8997306eda43753b2d3650e0
2015-08-24 11:13:12 +09:00
David Pursehouse c6f8b735fb Use SQLAlchemy version 0.9.7
Version 0.6 is not available on pypi.python.org

Change-Id: I3bb4793b48598a6bcfd506451a559676cbe9d44c
2015-04-20 13:56:57 +09:00
Alice Ferrazzi 588e82e380 Install pillow instead of PIL
PIL upstream is stopped and is not setuptools compatible.
Instead pillow looks to be a good replacement.
pillow is a functional drop-in replacement for PIL.

Closes-Bug: 1382016

Change-Id: I42bbafdb17964110a19083fd8a4dbe8561984198
2014-12-23 15:28:51 +09:00
Georg Brandl 03ab07a650 Allow server_names with and without trailing slashes. 2010-07-16 23:10:32 +02:00
Christopher Grebs 0faa988ed8 support user defined server name (applies partly and fixes #11) Thanks Maxcene for the patch! 2010-05-15 10:08:03 +02:00
Christopher Grebs e53c92b3d9 ported LodgeIt to SQLAlchemy 0.6 2010-05-15 08:10:32 +02:00
Christopher Grebs bb26f0e6f1 installation instructions 2009-12-21 11:06:46 +01:00
gbrandl 4ed502bb97 When pasting from stdin, print a message immediately after EOF, so
that hitting Ctrl-D twice is prevented.
2009-01-03 14:51:01 +01:00
gbrandl 59aa7374ea Remove old script. 2009-01-03 14:48:53 +01:00
gbrandl 1f7d39732e Fix. 2008-12-29 01:39:12 +01:00
gbrandl 3b720f4de8 Add xclip support. 2008-12-28 13:02:58 +01:00
gbrandl 1539755e74 Improve usage message. 2008-12-26 22:45:04 +01:00
gbrandl 1d63020eb7 Add support for multi-file pastes when giving multiple file arguments on the
command line.
2008-12-26 22:38:27 +01:00
gbrandl f2587b3c6c Improve error messages a bit. 2008-12-26 22:17:52 +01:00
gbrandl 27043ee316 Fix bugs in language selection, reorder arguments a bit and add short argument
aliases.
2008-12-26 22:14:45 +01:00
mitsuhiko eb1fc0d41b Improved XMLRPC interface and updated lodgeit.py for better mac support and private pastes. 2008-06-25 15:12:22 +02:00
mitsuhiko e5b1426e38 Updated lodgeit.py and fixed link in the about page 2008-06-25 14:30:28 +02:00
gbrandl 98e7170397 Fix filename in docstring. 2008-03-29 11:23:05 +01:00
entequak 240e697971 fixed lodgeit.py a bit 2008-01-12 10:08:16 +01:00
blackbird 1d9af4cdc8 [svn] fixed lodgeit script, documented it online 2007-07-26 18:07:40 +02:00
gbrandl 88b86a4904 [svn] Fix lodgeit.py script and remove unused import. 2007-07-25 19:16:40 +02:00
gbrandl d8337d4073 [svn] Fix. 2007-07-01 15:14:40 +02:00
gbrandl 49938768ee [svn] Fix. 2007-07-01 15:13:18 +02:00
gbrandl ee08490ab5 [svn] Fix. 2007-07-01 15:11:40 +02:00
gbrandl dcbc884cf2 [svn] Add new client script. 2007-07-01 15:10:32 +02:00
gbrandl e88bee3396 [svn] Move old client script. 2007-07-01 15:07:48 +02:00
blackbird b36b5e4106 [svn] checked in incomplete lodgeit in order to install it as private beta on the server 2007-04-09 16:21:23 +02:00
blackbird 2a6249a6d2 [svn] fixed typo in lodgeit script 2006-12-17 12:24:57 +01:00
blackbird a7715e387d [svn] added license informations to lodgeit pastebin and finished open sourceing the package 2006-12-15 22:37:06 +01:00