Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace obsoleted readfp() with read_file(), fixes gluster/glusterfs#4403 #4404

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions geo-replication/syncdaemon/gsyncdconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def reset(self, name):

cnf = RawConfigParser()
with open(self.custom_conf_file) as f:
cnf.readfp(f)
cnf.read_file(f)

# Nothing to Reset, Not configured
if name != "all":
Expand Down Expand Up @@ -140,7 +140,7 @@ def set(self, name, value):

cnf = RawConfigParser()
with open(self.custom_conf_file) as f:
cnf.readfp(f)
cnf.read_file(f)

if not cnf.has_section("vars"):
cnf.add_section("vars")
Expand Down Expand Up @@ -181,12 +181,12 @@ def _load(self):
conf = RawConfigParser()
# Default Template config file
with open(self.default_conf_file) as f:
conf.readfp(f)
conf.read_file(f)

# Custom Config file
if self.custom_conf_file is not None:
with open(self.custom_conf_file) as f:
conf.readfp(f)
conf.read_file(f)

# Get version from default conf file
self.version = conf.get("__meta__", "version")
Expand Down