Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
diceware-debian
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drebs
diceware-debian
Commits
655f7953
Unverified
Commit
655f7953
authored
10 months ago
by
ulif
Browse files
Options
Downloads
Patches
Plain Diff
Remove conditional import.
This was a remaining of py2.6 support.
parent
e740004f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
diceware/config.py
+1
-4
1 addition, 4 deletions
diceware/config.py
with
1 addition
and
4 deletions
diceware/config.py
+
1
−
4
View file @
655f7953
...
@@ -19,12 +19,9 @@
...
@@ -19,12 +19,9 @@
direct API calls.
direct API calls.
"""
"""
try
:
from
configparser
import
ConfigParser
as
SafeParser
# Python 3.x
except
ImportError
:
# pragma: no cover
from
ConfigParser
import
SafeConfigParser
as
SafeParser
# Python 2.x
import
os
import
os
import
re
import
re
from
configparser
import
ConfigParser
as
SafeParser
OPTIONS_DEFAULTS
=
dict
(
OPTIONS_DEFAULTS
=
dict
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment