Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
114e54e1
Commit
114e54e1
authored
Jan 08, 2016
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use configparser from six
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
6933907a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
weblate/trans/vcs.py
weblate/trans/vcs.py
+3
-3
No files found.
weblate/trans/vcs.py
View file @
114e54e1
...
...
@@ -26,7 +26,7 @@ import os
import
os.path
import
email.utils
import
re
import
ConfigParser
from
six.moves.configparser
import
Raw
ConfigParser
import
hashlib
# For some reasons, this fails in PyLint sometimes...
# pylint: disable=E0611,F0401
...
...
@@ -758,7 +758,7 @@ class HgRepository(Repository):
"""
section, option = path.split('
.
', 1)
filename = os.path.join(self.path, '
.
hg
', '
hgrc
')
config =
ConfigParser.
RawConfigParser()
config = RawConfigParser()
config.read(filename)
if config.has_option(section, option):
return config.get(section, option).decode('
utf
-
8
')
...
...
@@ -773,7 +773,7 @@ class HgRepository(Repository):
value = value.encode('
utf
-
8
')
section = section.encode('
utf
-
8
')
option = option.encode('
utf
-
8
')
config =
ConfigParser.
RawConfigParser()
config = RawConfigParser()
config.read(filename)
if not config.has_section(section):
config.add_section(section)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment