~ubuntu-branches/ubuntu/quantal/python-gevent/quantal

« back to all changes in this revision

Viewing changes to debian/patches/01-support-sphinx1

  • Committer: Bazaar Package Importer
  • Author(s): Örjan Persson
  • Date: 2011-05-17 16:43:20 UTC
  • mfrom: (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20110517164320-nwhld2xo6sz58p4m
Tags: 0.13.6-1
New upstream version (Closes: #601863).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Index: python-gevent/doc/mysphinxext.py
2
 
===================================================================
3
 
--- python-gevent.orig/doc/mysphinxext.py       2010-07-22 16:01:01.000000000 +0200
4
 
+++ python-gevent/doc/mysphinxext.py    2010-07-22 16:01:09.000000000 +0200
5
 
@@ -18,8 +18,12 @@
6
 
 
7
 
     type = node['reftype']
8
 
     target = node['reftarget']
9
 
-    modname = node['modname']
10
 
-    classname = node['classname']
11
 
+    if node.has_key('py:module'):
12
 
+        modname = node['py:module']
13
 
+        classname = node['py:class']
14
 
+    else:
15
 
+        modname = node['modname']
16
 
+        classname = node['classname']
17
 
 
18
 
     if modname and classname:
19
 
         return
20
 
@@ -28,7 +32,8 @@
21
 
         newnode = nodes.reference('', '')
22
 
         newnode['refuri'] = refuri
23
 
         newnode['reftitle'] = reftitle
24
 
-        newnode['class'] = 'external-xref'
25
 
+        newnode['py:class'] = 'external-xref'
26
 
+        newnode['classname'] = 'external-xref'
27
 
         newnode.append(contnode)
28
 
         msg = 'Resolved missing-reference: :%5s:`%s` -> %s' % (type, target, refuri)
29
 
         if noisy >= 1 or msg not in message_cache: