Skip to content

Commit

Permalink
fix: quality
Browse files Browse the repository at this point in the history
  • Loading branch information
justinhynes committed Jan 29, 2025
1 parent 2c903e6 commit 6dad4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def add_version_constraint_or_raise(current_line, current_requirements, add_if_n

# process .in files and store the path to any constraint files that are pulled in
for path in requirements_paths:
with open(path) as reqs:
with open(path, encoding='utf-8') as reqs:
for line in reqs:
if is_requirement(line):
add_version_constraint_or_raise(line, requirements, True)
Expand All @@ -68,7 +68,7 @@ def add_version_constraint_or_raise(current_line, current_requirements, add_if_n

# process constraint files and add any new constraints found to existing requirements
for constraint_file in constraint_files:
with open(constraint_file) as reader:
with open(constraint_file, encoding='utf-8') as reader:
for line in reader:
if is_requirement(line):
add_version_constraint_or_raise(line, requirements, False)
Expand Down

0 comments on commit 6dad4df

Please sign in to comment.