summaryrefslogtreecommitdiff
path: root/paste/util
Commit message (Collapse)AuthorAgeFilesLines
* Python 3: let html_quote() and url() always return the same typeNils Philippsen2015-11-121-4/+4
| | | | Mixing binary and text types causes errors later on.
* Python 3: dict.items() doesn't return a list anymoreNils Philippsen2015-11-121-2/+1
| | | | | Use sorted() instead, which works on lists as well as dict_items objects.
* replace ``has_key`` method to ``in`` operator #9fix-has_keyaodag2015-05-021-1/+1
|
* Revert change on paste.util.quoting.html_quote()Victor Stinner2015-04-231-1/+4
| | | | | On Python 2, html_quote(unicode) returns again bytes to restore backward compatibility.
* Fix paste.util.html_quote(unicode): don't encode the string to escape itVictor Stinner2015-04-221-25/+1
|
* Fix pyflakes warningsVictor Stinner2015-04-222-3/+0
| | | | | | * Remove unused variables * Remove unused imports * Remove dead code
* Fix paste.util.threadedprint.uninstall()Victor Stinner2015-04-221-2/+2
| | | | | Rename duplicated uninstall() function to uninstall_stdin() and fix typo in variable name (_oldstin => _oldstdin).
* Fix loop_pos.__repr__() of paste.util.looperVictor Stinner2015-04-221-1/+1
| | | | Use self.pos instead of an unknown pos variable.
* Remove UserDict24Victor Stinner2015-04-221-167/+0
|
* Remove subprocess24Victor Stinner2015-04-221-1152/+0
|
* Remove string24Victor Stinner2015-04-221-531/+0
|
* Fix some Python 3 issues in util.templateVictor Stinner2015-04-221-4/+4
|
* Port util.dateinterval to Python 3Victor Stinner2015-04-221-1/+1
|
* Port looper_iter to Python 3Victor Stinner2015-04-221-1/+2
|
* Remove doctest24Victor Stinner2015-04-221-2665/+0
|
* Port util.ipv4 to Python 3Victor Stinner2015-04-221-5/+6
|
* Port intset to Python 3Victor Stinner2015-04-221-16/+20
|
* Fix html_unquote() on Python 3Victor Stinner2015-04-211-5/+11
| | | | | * String must be a bytes string: replace str with six.binary_type * Port util.quoting to Python 3
* Port multidict to Python 3Victor Stinner2015-04-211-7/+32
|
* Port datetimeutil to Python 3Victor Stinner2015-04-211-9/+8
| | | | | * Replace string.atoi() with int() * Don't compare None with int
* Fix best_match() and desired_matches() on py3Victor Stinner2015-04-211-2/+2
|
* Convert files from file format DOS to UNIXVictor Stinner2015-04-212-2463/+2463
|
* Strip trailing spacesVictor Stinner2015-04-219-20/+20
|
* Python 3: fix more submodulesVictor Stinner2014-03-195-15/+14
| | | | | * print syntax * replace "except Exception, exc:" with "except Exception as exc:"
* Python 3: Replace types.ClassType with six.class_typesCyril Roelandt2014-03-181-2/+2
|
* Python 3: Replace <> operator with != operatorCyril Roelandt2014-03-182-4/+4
|
* Python 3: Replace string functions with str methodsCyril Roelandt2014-03-181-13/+13
|
* Python 3: fix sortCyril Roelandt2014-03-181-2/+3
| | | | | * Use key parameter of sort() * Convert dict.items() to list, needed by Python 3
* Python 3: Replace "for ... in dict.items()" with "for ... in ↵Cyril Roelandt2014-03-181-8/+9
| | | | | | six.iteritems(dict)" Same change for itervalues().
* Python 3: Use six types for stringsCyril Roelandt2014-03-184-13/+21
| | | | | * Replace (str, unicode) with (six.binary_type, six.text_type) * Replace basestring with (six.binary_type, six.text_type)
* Python 3: use new style of raise, replace "raise class, args" with "raise ↵Cyril Roelandt2014-03-182-7/+7
| | | | class(args)"
* Python 3: use six.reraise() to re-raise an exception with the tracebackCyril Roelandt2014-03-182-4/+6
|
* Python 3: add parenthesis to print() to support Python 2 and Python 3Cyril Roelandt2014-03-183-27/+27
| | | | Use also "from __future__ import print_function".
* Python 3: don't use tuples in function prototypeCyril Roelandt2014-03-181-1/+3
| | | | Unpack explicitly in the body of the function
* Python 3: Replace "except Exception, exc" with "except Exception as exc:"Cyril Roelandt2014-03-183-4/+4
|
* Python 3: use new names of standard library modulesCyril Roelandt2014-03-184-12/+16
| | | | Use "try/except ImportError" to try Python 2 and Python 3 names.
* Just a bit more paranoia in quoting comments, though I wasn't able to ↵Ian Bicking2010-09-141-1/+8
| | | | reproduce any actual issue
* Coerce thread id to a long, might fix problems in Ubuntu: ↵Ian Bicking2010-09-021-3/+3
| | | | http://trac.pythonpaste.org/pythonpaste/ticket/416
* TypoChristoph Zwerschke2010-08-191-1/+1
|
* Added some more test cases to test_mimeparse that I have found here:Christoph Zwerschke2010-08-191-4/+6
| | | | | http://code.google.com/p/mimeparse/source/browse/trunk/testdata.json Also added a link to the project upstream.
* Minor simplification.Christoph Zwerschke2010-08-191-8/+4
|
* Added unittests for util.mimeparse and made the module more robust and ↵Christoph Zwerschke2010-08-191-49/+65
| | | | | | somewhat faster. This also closes tickets #290, #330, #370 and #381.
* add a missing desired_matches function to mimeparse (was removed upstream, ↵Ian Bicking2010-06-231-11/+34
| | | | but still used in paste)
* Fix XSS attacks as reported by Tim WintleIan Bicking2010-06-151-0/+7
|
* update mimeparseIan Bicking2010-03-311-97/+39
|
* remove unneeded shebangianb2009-03-041-1/+0
|
* parse a single *, per #330ianb2009-01-091-1/+4
|
* correct r7651 comment, this changed as of 2.5.2pjenvey2008-11-191-2/+2
|
* make html_unquote('') consistently return u'' everywhere -- re.sub('', '', u'')pjenvey2008-11-181-1/+5
| | | | started acting differently as of 2.5.1
* update test for new website contentianb2008-11-161-1/+1
|