Skip to content

Commit 560ebb0

Browse files
committed
remove unicode literals
With this extension only supporting Python 3, there is no longer a need to specify Unicode literals; changing. Signed-off-by: James Knight <[email protected]>
1 parent 74aebae commit 560ebb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sphinxcontrib/confluencebuilder/logger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def trace(container, data):
118118
"""
119119
try:
120120
with open('trace.log', 'a', encoding='utf-8') as file:
121-
file.write(u'[%s]\n' % container)
121+
file.write('[%s]\n' % container)
122122
file.write(data)
123-
file.write(u'\n')
123+
file.write('\n')
124124
except (IOError, OSError) as err:
125125
ConfluenceLogger.warn('unable to trace: %s' % err)

tests/unit-tests/test_config_checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ def test_config_check_publish_list(self):
640640

641641
# explicitly force unicode strings to help verify python 2.x series
642642
# dealing with unicode strings inside the document subset
643-
self.config[option] = [u'doc-c']
643+
self.config[option] = ['doc-c']
644644
self._try_config(dataset=dataset)
645645

646646
# file with a valid document list

0 commit comments

Comments
 (0)