Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dh-python
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Debian Python Team
tools
dh-python
Commits
0648189d
Commit
0648189d
authored
5 years ago
by
Piotr Ożarowski
Browse files
Options
Downloads
Patches
Plain Diff
switching to /usr/bin/python2
parent
4b668dbb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dhpython/interpreter.py
+1
-3
1 addition, 3 deletions
dhpython/interpreter.py
with
1 addition
and
3 deletions
dhpython/interpreter.py
+
1
−
3
View file @
0648189d
...
...
@@ -151,9 +151,7 @@ class Interpreter:
return
self
.
name
version
=
version
or
self
.
version
or
''
if
consider_default_ver
and
(
not
version
or
version
==
self
.
default_version
):
version
=
'
3
'
if
self
.
impl
==
'
cpython3
'
else
''
elif
isinstance
(
version
,
Version
)
and
version
==
Version
(
major
=
2
):
version
=
''
# do not promote /usr/bin/python2
version
=
'
3
'
if
self
.
impl
==
'
cpython3
'
else
'
2
'
if
self
.
debug
:
return
'
python{}-dbg
'
.
format
(
version
)
return
self
.
name
+
str
(
version
)
...
...
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