File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1- # -*- coding: utf-8 -*-
21# © 2015 ACSONE SA/NV
32# Copyright 2023 Michael Tietz (MT Software) <mtietz@mt-software.de>
43# License AGPLv3 (http://www.gnu.org/licenses/agpl-3.0-standalone.html)
54# Parts of the code comes from ANYBOX
65# https://github.com/anybox/anybox.recipe.odoo
7- import subprocess
86import logging
7+ import subprocess
8+
99from ._compat import console_to_str
10+
1011logger = logging .getLogger (__name__ )
1112
1213
13- class CommandExecutor ( object ) :
14+ class CommandExecutor :
1415 def __init__ (self , cwd ):
1516 self .cwd = cwd
1617
Original file line number Diff line number Diff line change 1111from .exception import ConfigException
1212from .patch import Patches
1313
14-
1514log = logging .getLogger (__name__ )
1615
1716
Original file line number Diff line number Diff line change 1- # -*- coding: utf-8 -*-
21# Copyright 2023 Michael Tietz (MT Software) <mtietz@mt-software.de>
32# License AGPLv3 (http://www.gnu.org/licenses/agpl-3.0-standalone.html)
43import logging
5- from pathlib import Path
64import subprocess
5+ from pathlib import Path
76
87from .command import CommandExecutor
98
@@ -24,7 +23,7 @@ def retrive_data(self):
2423 path = self .path
2524 if self .is_local :
2625 patch_path = Path (path ).absolute ()
27- path = "FILE:{}" . format ( str (patch_path ))
26+ path = f "FILE:{ str (patch_path )} "
2827 cmd = [
2928 "curl" ,
3029 path ,
Original file line number Diff line number Diff line change 1010import requests
1111
1212from ._compat import console_to_str
13- from .exception import DirtyException , GitAggregatorException
1413from .command import CommandExecutor
14+ from .exception import DirtyException , GitAggregatorException
1515
1616FETCH_DEFAULTS = ("depth" , "shallow-since" , "shallow-exclude" )
1717logger = logging .getLogger (__name__ )
You can’t perform that action at this time.
0 commit comments