Skip to content

Commit

Permalink
black +isort
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarize committed Apr 21, 2023
1 parent a764d14 commit bc0c4bf
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
12 changes: 8 additions & 4 deletions src/translation_project.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import os
import re
from collections import OrderedDict
from datetime import datetime

from babelmsg import Catalog, extract, mofile, pofile
from src.utils import (HEADER, TEMPLATE, generate_template_from_python_package,
load, save)
from babelmsg import mofile
from src.utils import (
HEADER,
TEMPLATE,
generate_template_from_python_package,
load,
save,
)


class TranslationProject:
Expand Down
5 changes: 0 additions & 5 deletions src/utils.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import os
import re
from collections import OrderedDict
from copy import copy
from datetime import datetime
from difflib import get_close_matches

import wx

from babelmsg import Catalog, extract, mofile, pofile

PUNCTUATION = (".", "?", "!", ":", ";")
Expand Down
15 changes: 12 additions & 3 deletions src/wxpoboy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,18 @@

from assets import icons8_translation_50
from src.translation_project import TranslationProject
from src.utils import (HEADER, PRINTF_RE, PUNCTUATION, TEMPLATE,
delete_orphans, fuzzy_match, move_new_to_general,
obsolete_orphans, save, save_as_patch)
from src.utils import (
HEADER,
PRINTF_RE,
PUNCTUATION,
TEMPLATE,
delete_orphans,
fuzzy_match,
move_new_to_general,
obsolete_orphans,
save,
save_as_patch,
)

_ = wx.GetTranslation

Expand Down

0 comments on commit bc0c4bf

Please sign in to comment.