| |
@@ -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
|
| |