Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add PSFL support

  • Loading branch information...
commit e82bb7cdb6559563711fa890937c6b987298be9e 1 parent 4914c4d
@kyleconroy authored
Showing with 8 additions and 2 deletions.
  1. +1 −1  licenses/psfl-2.txt
  2. +6 −0 tests/test_repos.py
  3. +1 −1  web.py
View
2  licenses/psfl-2.txt
@@ -11,7 +11,7 @@ grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
analyze, test, perform and/or display publicly, prepare derivative works,
distribute, and otherwise use Python alone or in any derivative version,
provided, however, that PSF's License Agreement and PSF's notice of copyright,
-i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+i.e., "Copyright (c) <SPLIT>
Python Software Foundation; All Rights Reserved" are retained in Python alone or
in any derivative version prepared by Licensee.
View
6 tests/test_repos.py
@@ -309,4 +309,10 @@ def test_mbostock_d3():
msg = web.get_license('mbostock', 'd3')
assert_equals('Modified BSD License', msg)
+def test_editorconfig_core():
+ msg = web.get_license('editorconfig', 'editorconfig-core-py')
+ assert_equals('Python Software Foundation License Version 2', msg)
+def test_python_python():
+ msg = web.get_license('python-git', 'python')
+ assert_equals('Python Software Foundation License Version 2', msg)
View
2  web.py
@@ -77,7 +77,7 @@ def clean(blob, remove_numbers=True):
{
'name': 'Python Software Foundation License Version 2',
'shorthand': 'PSFL-2',
- 'text': clean(open("licenses/psfl-2.txt").read()),
+ 'texts': clean(open("licenses/psfl-2.txt").read()).split("<split>"),
},
]
Please sign in to comment.
Something went wrong with that request. Please try again.