Skip to content
Snippets Groups Projects
Commit 0c6e9c10 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

argparse already does this if passed None

parent fa9d755b
No related branches found
No related tags found
1 merge request!668[Webservice] Monitor Slurm jobs in separate process
...@@ -3,7 +3,6 @@ import argparse ...@@ -3,7 +3,6 @@ import argparse
import json import json
import locale import locale
import logging import logging
import sys
import time import time
from datetime import datetime, timezone from datetime import datetime, timezone
from pathlib import Path from pathlib import Path
...@@ -197,9 +196,6 @@ def update_job_db(config): ...@@ -197,9 +196,6 @@ def update_job_db(config):
def main(argv=None): def main(argv=None):
if argv is None:
argv = sys.argv[1:]
# Ensure files are opened as UTF-8 by default, regardless of environment. # Ensure files are opened as UTF-8 by default, regardless of environment.
locale.setlocale(locale.LC_CTYPE, ('en_US', 'UTF-8')) locale.setlocale(locale.LC_CTYPE, ('en_US', 'UTF-8'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment