[thorstenp] remove statements without effect
This commit is contained in:
parent
98255a0671
commit
464f62d580
|
@ -485,8 +485,7 @@ class Socks5:
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
def get_file_contents(self, timeout):
|
def get_file_contents(self, timeout):
|
||||||
''' read file contents from socket and write them to file ''', \
|
''' read file contents from socket and write them to file '''
|
||||||
self.file_props['type'], self.file_props['sid']
|
|
||||||
if self.file_props is None or \
|
if self.file_props is None or \
|
||||||
('file-name' in self.file_props) is False:
|
('file-name' in self.file_props) is False:
|
||||||
self.file_props['error'] = -2
|
self.file_props['error'] = -2
|
||||||
|
|
|
@ -249,7 +249,6 @@ class Session:
|
||||||
features=Node('stream:features')
|
features=Node('stream:features')
|
||||||
if NS_TLS in self.waiting_features:
|
if NS_TLS in self.waiting_features:
|
||||||
features.T.starttls.setNamespace(NS_TLS)
|
features.T.starttls.setNamespace(NS_TLS)
|
||||||
features.T.starttls.T.required
|
|
||||||
if NS_SASL in self.waiting_features:
|
if NS_SASL in self.waiting_features:
|
||||||
features.T.mechanisms.setNamespace(NS_SASL)
|
features.T.mechanisms.setNamespace(NS_SASL)
|
||||||
for mec in self._owner.SASL.mechanisms:
|
for mec in self._owner.SASL.mechanisms:
|
||||||
|
|
|
@ -214,7 +214,7 @@ class IterableIPShell:
|
||||||
possibilities = self.IP.complete(split_line[-1])
|
possibilities = self.IP.complete(split_line[-1])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
__builtins__.all
|
all(())
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
def all(iterable):
|
def all(iterable):
|
||||||
for element in iterable:
|
for element in iterable:
|
||||||
|
|
Loading…
Reference in New Issue