Skip to content

Commit

Permalink
Removed pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
raulikak committed Apr 15, 2024
1 parent 70a754e commit 025beee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 0 additions & 3 deletions tcsfw/client_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import prompt_toolkit
from prompt_toolkit.history import FileHistory

from framing.raw_data import Raw

from tcsfw.basics import Status
from tcsfw.batch_import import BatchImporter
from tcsfw.verdict import Verdict
Expand All @@ -22,7 +20,6 @@
from tcsfw.entity import Entity
from tcsfw.event_interface import EventMap
from tcsfw.model import Addressable, NetworkNode, Connection, Host, Service, ModelListener, IoTSystem, NodeComponent
from tcsfw.pcap_reader import PCAPReader
from tcsfw.property import Properties, PropertyKey, PropertySetValue, PropertyVerdictValue
from tcsfw.registry import Registry
from tcsfw.specifications import Specifications
Expand Down
5 changes: 2 additions & 3 deletions tcsfw/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@ async def handle_http(self, request):
with tempfile.TemporaryFile() as tmp:
data = await self.read_stream_to_file(request, tmp)
res = self.api.api_post(req, data)
return res
elif request.content_type == "application/zip":
# ZIP file
res = await self.api_post_zip(req, request)
return res
raise ValueError("Unexpected content-type")
else:
raise ValueError("Unexpected content-type")
else:
raise NotImplementedError("Unexpected method/path")
return web.Response(text=json.dumps(res))
Expand Down

0 comments on commit 025beee

Please sign in to comment.