#424 Fix building docs with Python 3
Merged 4 years ago by kparal. Opened 4 years ago by frantisekz.

@@ -108,7 +108,7 @@ 

          # Hack the opening of the file to strip ".py" from module names

          f = open(os.path.join(options.output_dir,

                                outputname % module[:-3]), 'w')

-         f.write(text.encode('utf-8'))

+         f.write(text)

          f.close()

      else:

          print(text)
@@ -347,7 +347,7 @@ 

      category = category.title()

  

      modules = module_map.keys()

-     modules.sort()

+     modules = sorted(modules)

  

      toc_list = []

      links_list = []
@@ -471,7 +471,7 @@ 

  

      categories = list_modules(options.module_dir)

      category_names = categories.keys()

-     category_names.sort()

+     category_names = sorted(category_names)

      assert CATEGORY_NAME in category_names

  

      # Create the 'directives' directory if it doesn't exist

no initial comment

rebased onto e658efe

4 years ago

Commit f710ccd fixes this pull-request

Pull-Request has been merged by kparal

4 years ago
Metadata