Skip to content
Snippets Groups Projects
Commit ae33775c authored by gpotter2's avatar gpotter2
Browse files

Better names

parent f2201b7f
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ class DADict_Exception(Scapy_Exception): ...@@ -25,7 +25,7 @@ class DADict_Exception(Scapy_Exception):
class DADict: class DADict:
def __init__(self, _name="DADict", **kargs): def __init__(self, _name="DADict", **kargs):
self._name=_name self._name=_name
self._update(kargs) self.update(kargs)
def fixname(self,val): def fixname(self,val):
return fixname(val) return fixname(val)
def __contains__(self, val): def __contains__(self, val):
...@@ -56,7 +56,7 @@ class DADict: ...@@ -56,7 +56,7 @@ class DADict:
return False return False
return True return True
def _update(self, *args, **kwargs): def update(self, *args, **kwargs):
for k, v in dict(*args, **kwargs).iteritems(): for k, v in dict(*args, **kwargs).iteritems():
self[k] = v self[k] = v
......
...@@ -24,9 +24,6 @@ sox_base = "sox -t .ul %s - -t ossdsp /dev/dsp" ...@@ -24,9 +24,6 @@ sox_base = "sox -t .ul %s - -t ossdsp /dev/dsp"
if WINDOWS: if WINDOWS:
if conf.prog.sox is None: if conf.prog.sox is None:
raise OSError("Sox must be installed to play VoIP packets") raise OSError("Sox must be installed to play VoIP packets")
finally:
if p_test:
p_test.terminate()
sox_base = "\"" + conf.prog.sox + "\" -t .ul %s - -t waveaudio" sox_base = "\"" + conf.prog.sox + "\" -t .ul %s - -t waveaudio"
def _merge_sound_bytes(x,y,sample_size=2): def _merge_sound_bytes(x,y,sample_size=2):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment