-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
96 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,6 @@ | |
# | ||
# @author Davide Brunato <[email protected]> | ||
# | ||
""" | ||
Parse and translate XML Schema regular expressions to Python regex syntax. | ||
""" | ||
import re | ||
from itertools import chain | ||
from sys import maxunicode | ||
|
@@ -92,7 +89,7 @@ def __init__(self, charset=None, is_syntax=True): | |
self.add(charset) | ||
|
||
def __repr__(self): | ||
return '<%s at %d>' % (self.__class__.__name__, id(self)) | ||
return '%s(%s)' % (self.__class__.__name__, str(self)) | ||
|
||
def __str__(self): | ||
if not self.negative: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ setuptools | |
tox | ||
coverage | ||
lxml | ||
xmlschema~=1.2.0 | ||
xmlschema~=1.2.3 | ||
Sphinx | ||
-e . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,15 @@ | |
# | ||
# @author Davide Brunato <[email protected]> | ||
# | ||
from setuptools import setup | ||
from setuptools import setup, find_packages | ||
|
||
with open("README.rst") as readme: | ||
long_description = readme.read() | ||
|
||
setup( | ||
name='elementpath', | ||
version='2.0.1', | ||
packages=['elementpath'], | ||
packages=find_packages(include=['elementpath', 'elementpath.*']), | ||
author='Davide Brunato', | ||
author_email='[email protected]', | ||
url='https://github.com/sissaschool/elementpath', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters