Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
a31410a5
Commit
a31410a5
authored
Feb 09, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove excess whitespace and unused imports.
parent
c20ed4df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
setuptools/command/alias.py
setuptools/command/alias.py
+3
-10
No files found.
setuptools/command/alias.py
View file @
a31410a5
import
distutils
,
os
from
setuptools
import
Command
from
distutils.util
import
convert_path
from
distutils
import
log
from
distutils.errors
import
*
from
distutils.errors
import
*
from
setuptools.command.setopt
import
edit_config
,
option_base
,
config_file
from
setuptools.command.setopt
import
edit_config
,
option_base
,
config_file
...
@@ -11,17 +7,17 @@ def shquote(arg):
...
@@ -11,17 +7,17 @@ def shquote(arg):
if
c
in
arg
:
return
repr
(
arg
)
if
c
in
arg
:
return
repr
(
arg
)
if
arg
.
split
()
!=
[
arg
]:
if
arg
.
split
()
!=
[
arg
]:
return
repr
(
arg
)
return
repr
(
arg
)
return
arg
return
arg
class
alias
(
option_base
):
class
alias
(
option_base
):
"""Define a shortcut that invokes one or more commands"""
"""Define a shortcut that invokes one or more commands"""
description
=
"define a shortcut to invoke one or more commands"
description
=
"define a shortcut to invoke one or more commands"
command_consumes_arguments
=
True
command_consumes_arguments
=
True
user_options
=
[
user_options
=
[
(
'remove'
,
'r'
,
'remove (unset) the alias'
),
(
'remove'
,
'r'
,
'remove (unset) the alias'
),
]
+
option_base
.
user_options
]
+
option_base
.
user_options
boolean_options
=
option_base
.
boolean_options
+
[
'remove'
]
boolean_options
=
option_base
.
boolean_options
+
[
'remove'
]
...
@@ -77,6 +73,3 @@ def format_alias(name, aliases):
...
@@ -77,6 +73,3 @@ def format_alias(name, aliases):
else
:
else
:
source
=
'--filename=%r'
%
source
source
=
'--filename=%r'
%
source
return
source
+
name
+
' '
+
command
return
source
+
name
+
' '
+
command
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