Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
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
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
976e8e53
Commit
976e8e53
authored
7 years ago
by
mtu
Browse files
Options
Downloads
Patches
Plain Diff
Remove IPython-specific tab completion
parent
1993f53f
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
scapy/main.py
+0
-5
0 additions, 5 deletions
scapy/main.py
with
0 additions
and
5 deletions
scapy/main.py
+
0
−
5
View file @
976e8e53
...
@@ -480,16 +480,11 @@ def interact(mydict=None,argv=None,mybanner=None,loglevel=20):
...
@@ -480,16 +480,11 @@ def interact(mydict=None,argv=None,mybanner=None,loglevel=20):
banner
=
the_banner
+
"
using IPython %s
\n
"
%
IPython
.
__version__
banner
=
the_banner
+
"
using IPython %s
\n
"
%
IPython
.
__version__
from
IPython.terminal.embed
import
InteractiveShellEmbed
from
IPython.terminal.embed
import
InteractiveShellEmbed
from
IPython.terminal.prompts
import
Prompts
,
Token
from
IPython.terminal.prompts
import
Prompts
,
Token
from
IPython.utils.generics
import
complete_object
from
traitlets.config.loader
import
Config
from
traitlets.config.loader
import
Config
from
scapy.packet
import
Packet
from
scapy.packet
import
Packet
cfg
=
Config
()
cfg
=
Config
()
@complete_object.when_type
(
Packet
)
def
complete_packet
(
obj
,
prev_completions
):
return
prev_completions
+
[
fld
.
name
for
fld
in
obj
.
fields_desc
]
try
:
try
:
get_ipython
get_ipython
except
NameError
:
except
NameError
:
...
...
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