mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-31 23:08:09 -07:00
dev-python/psycopg: remove unused patches
This commit is contained in:
committed by
Aaron W. Swenson
parent
4a5bda720b
commit
deb4da97b5
@@ -1,13 +0,0 @@
|
||||
diff --git a/setup.py b/setup.py
|
||||
index e03876a..f5ec2ac 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -461,7 +461,7 @@ if parser.has_option('build_ext', 'mx_include_dir'):
|
||||
mxincludedir = parser.get('build_ext', 'mx_include_dir')
|
||||
else:
|
||||
mxincludedir = os.path.join(get_python_inc(plat_specific=1), "mx")
|
||||
-if os.path.exists(mxincludedir):
|
||||
+if not use_pydatetime and os.path.exists(mxincludedir):
|
||||
# Build the support for mx: we will check at runtime if it can be imported
|
||||
include_dirs.append(mxincludedir)
|
||||
define_macros.append(('HAVE_MXDATETIME', '1'))
|
||||
@@ -1,29 +0,0 @@
|
||||
--- psycopg-2.7.3.2/doc/src/tools/lib/dbapi_extension.py 2016-04-10 08:48:37.000000000 +0200
|
||||
+++ psycopg-2.7.3.2/doc/src/tools/lib/dbapi_extension.py 2017-12-20 22:14:19.097225121 +0100
|
||||
@@ -12,7 +12,7 @@
|
||||
from docutils import nodes
|
||||
|
||||
from sphinx.locale import _
|
||||
-from sphinx.util.compat import Directive, make_admonition
|
||||
+from docutils.parsers.rst import Directive
|
||||
|
||||
class extension_node(nodes.Admonition, nodes.Element): pass
|
||||
|
||||
@@ -29,12 +29,11 @@ class Extension(Directive):
|
||||
option_spec = {}
|
||||
|
||||
def run(self):
|
||||
- nodes = make_admonition(extension_node,
|
||||
- self.name, [_('DB API extension')], self.options,
|
||||
- self.content, self.lineno, self.content_offset,
|
||||
- self.block_text, self.state, self.state_machine)
|
||||
- nodes[0]['classes'].append('dbapi-extension')
|
||||
- return nodes
|
||||
+ node = extension_node('\n'.join(self.content))
|
||||
+ node += nodes.title(_('DB API extension'), _('DB API extension'))
|
||||
+ self.state.nested_parse(self.content, self.content_offset, node)
|
||||
+ node['classes'].append('dbapi-extension')
|
||||
+ return [node]
|
||||
|
||||
|
||||
def visit_extension_node(self, node):
|
||||
Reference in New Issue
Block a user