Fix the import after the hawkmoth->parser rename.
---
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()
--
2.20.1