[hawkmoth] Re: [PATCH] cli: fix parser import

  • From: Jani Nikula <jani@xxxxxxxxxx>
  • To: Bruno Santos <brunomanuelsantos@xxxxxxxxxxxxxxxxxx>
  • Date: Sat, 02 Feb 2019 20:58:37 +0200

On Sat, 02 Feb 2019, Bruno Santos <brunomanuelsantos@xxxxxxxxxxxxxxxxxx> wrote:

On 20:44:21 2019-02-02, Jani Nikula wrote:
Fix the import after the hawkmoth->parser rename.

Oops, missed this one :/ Yeah, looks good to go.

Thanks, pushed.

BR,
Jani.


Bruno

---
 hawkmoth/__main__.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hawkmoth/__main__.py b/hawkmoth/__main__.py
index 1731b519ae6c..8d237d783a0b 100644
--- a/hawkmoth/__main__.py
+++ b/hawkmoth/__main__.py
@@ -10,7 +10,7 @@ python3 -m hawkmoth
 import argparse
 import sys
 
-from hawkmoth import hawkmoth
+from hawkmoth.parser import parse_to_string
 
 def main():
     parser = argparse.ArgumentParser(prog='hawkmoth', description="""
@@ -31,8 +31,8 @@ def main():
                         help='Verbose output.')
     args = parser.parse_args()
 
-    comments = hawkmoth.parse_to_string(args.file, args.verbose,
-                                        compat=args.compat, 
clang=args.clang)
+    comments = parse_to_string(args.file, args.verbose,
+                               compat=args.compat, clang=args.clang)
     sys.stdout.write(comments)
 
 main()

Other related posts: