summaryrefslogtreecommitdiffstats
path: root/doc/sphinx/conf.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2023-08-04 14:37:28 (GMT)
committerMats Wichmann <mats@linux.com>2023-08-04 14:42:12 (GMT)
commitf3d1936c34333b8b535269a007a5598e93029bc0 (patch)
treed57e134d5dca344c8da28b7c62290f2c4ac6127e /doc/sphinx/conf.py
parente141cd3288ece58340a1a9e5d99a8c4f810366a9 (diff)
downloadSCons-f3d1936c34333b8b535269a007a5598e93029bc0.zip
SCons-f3d1936c34333b8b535269a007a5598e93029bc0.tar.gz
SCons-f3d1936c34333b8b535269a007a5598e93029bc0.tar.bz2
"Modernize" to Python 3.6 via tool
$ pyupgrade --py36-plus $(<filelist) Here's mostly what it's done: - No more 'stringliteral'.encode('utf-8'): now b'stringliteral' - No more unicode literals - the default open mode is 'r', leaves out if default - some f-string conversions (if shorter) - catch OSError instead of subclasses - no more mention of "object" - generator expression instead of list comp. when safe - a few tests had a shebang but actually began with blank line - remove coding: utf-8 comment, per pep 3120 this is the default now Manually - if a file in test/ was modified, then did the copyright header conversion. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'doc/sphinx/conf.py')
-rw-r--r--doc/sphinx/conf.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py
index 5ad5448..bf492f0 100644
--- a/doc/sphinx/conf.py
+++ b/doc/sphinx/conf.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
#
# SCons documentation build configuration file, created by
# sphinx-quickstart on Mon Apr 30 09:36:53 2018.