File: no-get-distribution

package info (click to toggle)
pglast 7.7-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,424 kB
  • sloc: python: 13,363; sql: 2,338; makefile: 159
file content (15 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/pglast/__main__.py
+++ b/pglast/__main__.py
@@ -64,11 +64,9 @@ def workhorse(args):
 
 def main(options=None):
     from argparse import ArgumentParser
-    from importlib.metadata import metadata
     from .parser import get_postgresql_version
 
-    version = '%s, with PostgreSQL %s parser' % (
-        metadata('pglast')['Version'],
+    version = 'with PostgreSQL %s parser' % (
         '.'.join(str(p) for p in get_postgresql_version()))
 
     parser = ArgumentParser(description="PostgreSQL language prettifier")