Skip to content

Commit

Permalink
suricatals: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicold committed Dec 13, 2023
1 parent 116d5ac commit 8d6b678
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions suricatals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@

import sys
import argparse
from .langserver import LangServer
from .jsonrpc import JSONRPC2Connection, ReadWriter
from suricatals.langserver import LangServer
from suricatals.jsonrpc import JSONRPC2Connection, ReadWriter
import json
__version__ = '0.9.2'

Expand Down
2 changes: 1 addition & 1 deletion suricatals/tests_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def rule_buffer(self, rule_buffer, engine_analysis=True, config_buffer=None, rel
if extra_buffers:
for filename, content in extra_buffers.items():
full_path = os.path.join(tmpdir, filename)
with open(full_path, 'w') as f:
with open(full_path, 'w', encoding="utf-8") as f:
f.write(content)

config_file = self.generate_config(tmpdir, config_buffer=config_buffer,
Expand Down
2 changes: 1 addition & 1 deletion suricatals/unit_tests.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from langserver import LangServer
from suricatals.langserver import LangServer

class TestSyntax(unittest.TestCase):

Expand Down

0 comments on commit 8d6b678

Please sign in to comment.