From fcdcdadb7321743642ee8cb30a17a59fcf2bfccd Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Wed, 11 Aug 2021 07:35:37 +0300
Subject: [PATCH] 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.
---
 template/__init__.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/template/__init__.py b/template/__init__.py
index 8232865..7b2a941 100644
--- a/template/__init__.py
+++ b/template/__init__.py
@@ -12,7 +12,6 @@ from __future__ import (
 from os import environ
 import sys
 import argparse
-from argparse import ArgumentParser
 import template.filters
 
 # I ignore import errors here and fail on them later in the main function so
@@ -40,7 +39,7 @@ def render(template_string):
 
 def main():
     """Main entrypoint."""
-    parser = ArgumentParser(description=__doc__)
+    parser = argparse.ArgumentParser(description=__doc__)
     parser.add_argument(
         "filename",
         help="Input filename",
-- 
GitLab