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

disable interpolation #332

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion python/seaserv/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _load_path_from_env(key, check=True):

# load ccnet server addr and port from ccnet.conf.
# 'addr:port' is used when downloading a repo
config = configparser.ConfigParser()
config = configparser.ConfigParser(interpolation=None)
config.read(os.path.join(SEAFILE_CENTRAL_CONF_DIR if SEAFILE_CENTRAL_CONF_DIR else CCNET_CONF_PATH,
'ccnet.conf'))

Expand Down
2 changes: 1 addition & 1 deletion scripts/check_init_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def get_python_executable():
@staticmethod
def read_config(fn):
'''Return a case sensitive ConfigParser by reading the file "fn"'''
cp = ConfigParser()
cp = ConfigParser(interpolation=None)
cp.optionxform = str
cp.read(fn)

Expand Down
2 changes: 1 addition & 1 deletion scripts/setup-seafile-mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def get_python_executable():
@staticmethod
def read_config(fn):
'''Return a case sensitive ConfigParser by reading the file "fn"'''
cp = ConfigParser()
cp = ConfigParser(interpolation=None)
cp.optionxform = str
cp.read(fn)

Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade/db_update_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def read_config(config_path, defaults):
if not os.path.exists(config_path):
Utils.error('Config path %s doesn\'t exist, stop db upgrade' %
config_path)
cp = configparser.ConfigParser(defaults)
cp = configparser.ConfigParser(defaults, interpolation=None)
cp.read(config_path)
return cp

Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade/fix_mysql_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def error(msg):

@staticmethod
def read_config(config_path, defaults):
cp = configparser.ConfigParser(defaults)
cp = configparser.ConfigParser(defaults, interpolation=None)
cp.read(config_path)
return cp

Expand Down