Skip to content
Snippets Groups Projects
Commit fcdcdadb authored by nimrod's avatar nimrod
Browse files

Don't import argparse twice.

I've been trying out lgtm.com and that's the only issue it found. Valid
comment, fix the issue.
parent e380b4e8
No related branches found
No related tags found
No related merge requests found
Pipeline #2014 failed
...@@ -12,7 +12,6 @@ from __future__ import ( ...@@ -12,7 +12,6 @@ from __future__ import (
from os import environ from os import environ
import sys import sys
import argparse import argparse
from argparse import ArgumentParser
import template.filters import template.filters
# I ignore import errors here and fail on them later in the main function so # I ignore import errors here and fail on them later in the main function so
...@@ -40,7 +39,7 @@ def render(template_string): ...@@ -40,7 +39,7 @@ def render(template_string):
def main(): def main():
"""Main entrypoint.""" """Main entrypoint."""
parser = ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument( parser.add_argument(
"filename", "filename",
help="Input filename", help="Input filename",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment