File tree 2 files changed +2
-2
lines changed
examples/03-remote-system
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class LocalAdapter(DiffSync):
29
29
30
30
def load (self , filename = COUNTRIES_FILE ): # pylint: disable=arguments-differ
31
31
"""Load all regions and countries from a local JSON file."""
32
- with open (filename , "r" ) as data_file : # pylint: disable=unspecified-encoding
32
+ with open (filename , "r" , encoding = "UTF-8" ) as data_file :
33
33
countries = json .load (data_file )
34
34
35
35
# Load all regions first
Original file line number Diff line number Diff line change 27
27
28
28
def project_ver ():
29
29
"""Find version from pyproject.toml to use for docker image tagging."""
30
- with open ("pyproject.toml" ) as file : # pylint: disable=unspecified-encoding
30
+ with open ("pyproject.toml" , encoding = "UTF-8" ) as file :
31
31
return toml .load (file )["tool" ]["poetry" ].get ("version" , "latest" )
32
32
33
33
You can’t perform that action at this time.
0 commit comments