Skip to content

Commit

Permalink
Not using PosixPath in GoParser anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
glato committed Oct 1, 2022
1 parent 4c4d68e commit 3deb7a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion emerge/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import os
import logging
from typing import Any, List, Dict
from pathlib import Path, PosixPath
from pathlib import Path

from datetime import datetime
import coloredlogs
Expand Down
4 changes: 2 additions & 2 deletions emerge/languages/goparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from enum import Enum, unique
import logging
import re
from pathlib import PosixPath
from pathlib import Path

import pyparsing as pp

Expand Down Expand Up @@ -91,7 +91,7 @@ def generate_file_result_from_analysis(self, analysis, *, file_name: str, full_f
scanned_tokens = self.preprocess_file_content_and_generate_token_list_by_mapping(file_content, self._token_mappings)

# make sure to create unique names by using the relative analysis path as a base for the result
parent_analysis_source_path = f"{PosixPath(analysis.source_directory).parent}/"
parent_analysis_source_path = f"{Path(analysis.source_directory).parent}/"
relative_file_path_to_analysis = full_file_path.replace(parent_analysis_source_path, "")
preprocessed_source = self.preprocess_golang_source(scanned_tokens)

Expand Down

0 comments on commit 3deb7a7

Please sign in to comment.