Skip to content

Commit

Permalink
Merge pull request #381 from fredgan/remove_useless_code
Browse files Browse the repository at this point in the history
Remove useless imports and code
  • Loading branch information
einarnn committed Apr 6, 2020
2 parents d68ee21 + 0a4b4a7 commit aedd2b3
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion ncclient/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# limitations under the License.

import logging
import sys
import six


Expand Down
2 changes: 0 additions & 2 deletions ncclient/devices/h3c.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
"""

from ncclient.xml_ import BASE_NS_1_0

from .default import DefaultDeviceHandler
from ncclient.operations.third_party.h3c.rpc import *

Expand Down
2 changes: 0 additions & 2 deletions ncclient/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@
It exposes all core functionality.
"""

from ncclient import capabilities
from ncclient import operations
from ncclient import transport
import six
import logging
import functools

Expand Down
4 changes: 0 additions & 4 deletions ncclient/operations/edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,11 @@ def request(self, config, format='xml', target='candidate', default_operation=No
if error_option == "rollback-on-error":
self._assert(":rollback-on-error")
sub_ele(node, "error-option").text = error_option
# <<<<<<< HEAD
# node.append(validated_element(config, ("config", qualify("config"))))
# =======
if format == 'xml':
node.append(validated_element(config, ("config", qualify("config"))))
if format == 'text':
config_text = sub_ele(node, "config-text")
sub_ele(config_text, "configuration-text").text = config
# >>>>>>> juniper
return self._request(node)


Expand Down
1 change: 0 additions & 1 deletion ncclient/operations/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from threading import Event, Lock
from uuid import uuid4
import six

from ncclient.xml_ import *
from ncclient.logging_ import SessionLoggerAdapter
Expand Down
2 changes: 0 additions & 2 deletions ncclient/transport/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
# limitations under the License.


import re
import sys
import logging
from threading import Thread, Lock, Event
try:
Expand Down
2 changes: 0 additions & 2 deletions ncclient/transport/third_party/junos/ioproc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import sys
import re
import six
Expand All @@ -7,7 +6,6 @@
from cStringIO import StringIO
else:
from io import BytesIO as StringIO
from select import select
if sys.version>='2.7':
from subprocess import Popen, check_output, PIPE, STDOUT
else:
Expand Down

0 comments on commit aedd2b3

Please sign in to comment.