robertlugg / easygui

easygui for Python
http://easygui.readthedocs.org/en/master/
BSD 3-Clause "New" or "Revised" License
451 stars 114 forks source link

Python-easygui ftbfs in debian with python 3 #189

Open anoteng opened 2 years ago

anoteng commented 2 years ago

The issue seems related to python2 syntax in sphinx/config.py The changes below seems to fix the issue:

--- a/sphinx/conf.py
+++ b/sphinx/conf.py
@@ -273,8 +273,8 @@
 def suppress_module_docstring(app, what, name, obj, options, lines):

   if what == 'module':
-    print len(lines)
-    for i in xrange(len(lines)):
+    print(len(lines))
+    for i in range(len(lines)):
       del lines[-1]
   pass

@@ -282,9 +282,9 @@
   if what == 'function':
     lines.insert(0,'.. py:function:: freddy')  # Not needed
     lines.insert(1,'')
-    print lines[0]
-    print obj
-    print options
+    print(lines[0])
+    print(obj)
+    print(options)

 def setup(app):
anoteng commented 2 years ago

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=997777