hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.34k stars 114 forks source link

Syntax error in some distro logos. #90

Closed rakino closed 1 year ago

rakino commented 1 year ago

Description

If you're suggesting a new feature then just a description will suffice.

python3 setup.py test output:

WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
running egg_info
creating HyFetch.egg-info
writing HyFetch.egg-info/PKG-INFO
writing dependency_links to HyFetch.egg-info/dependency_links.txt
writing entry points to HyFetch.egg-info/entry_points.txt
writing requirements to HyFetch.egg-info/requires.txt
writing top-level names to HyFetch.egg-info/top_level.txt
writing manifest file 'HyFetch.egg-info/SOURCES.txt'
reading manifest file 'HyFetch.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.md'
writing manifest file 'HyFetch.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "/home/hako/Repository/hyfetch/setup.py", line 15, in <module>
    setup(
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
    return distutils.core.setup(**attrs)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
    return run_commands(dist)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
    dist.run_commands()
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_commands
    self.run_command(cmd)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
    super().run_command(command)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 992, in run_command
    cmd_obj.run()
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/command/test.py", line 224, in run
    self.run_tests()
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/command/test.py", line 227, in run_tests
    test = unittest.main(
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/main.py", line 100, in __init__
    self.parseArgs(argv)
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/main.py", line 124, in parseArgs
    self._do_discovery(argv[2:])
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/main.py", line 244, in _do_discovery
    self.createTests(from_discovery=True, Loader=Loader)
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/main.py", line 154, in createTests
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 349, in discover
    tests = list(self._find_tests(start_dir, pattern))
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 405, in _find_tests
    tests, should_recurse = self._find_test_path(
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 483, in _find_test_path
    tests = self.loadTestsFromModule(package, pattern=pattern)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/command/test.py", line 57, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 191, in loadTestsFromName
    return self.loadTestsFromModule(obj)
  File "/gnu/store/1wirnr9djcfwn98dbsz4jndnl7qrh92y-python-setuptools-64.0.3/lib/python3.9/site-packages/setuptools/command/test.py", line 57, in loadTestsFromModule
    tests.append(self.loadTestsFromName(submodule))
  File "/gnu/store/snsyfmz48r2hqfi2bfwcas952ajf1js7-profile/lib/python3.9/unittest/loader.py", line 154, in loadTestsFromName
    module = __import__(module_name)
  File "/home/hako/Repository/hyfetch/hyfetch/distros/haiku.py", line 18
    \""""              \""""
                            ^
SyntaxError: unexpected character after line continuation character

python3 -m compileall . output:

Listing '.'...
Listing './.git'...
Listing './.git/branches'...
Listing './.git/hooks'...
Listing './.git/info'...
Listing './.git/logs'...
Listing './.git/logs/refs'...
Listing './.git/logs/refs/heads'...
Listing './.git/logs/refs/remotes'...
Listing './.git/logs/refs/remotes/origin'...
Listing './.git/objects'...
Listing './.git/objects/03'...
Listing './.git/objects/0e'...
Listing './.git/objects/10'...
Listing './.git/objects/1c'...
Listing './.git/objects/27'...
Listing './.git/objects/3e'...
Listing './.git/objects/82'...
Listing './.git/objects/91'...
Listing './.git/objects/b8'...
Listing './.git/objects/ea'...
Listing './.git/objects/info'...
Listing './.git/objects/pack'...
Listing './.git/refs'...
Listing './.git/refs/heads'...
Listing './.git/refs/remotes'...
Listing './.git/refs/remotes/origin'...
Listing './.git/refs/tags'...
Listing './.github'...
Listing './.github/workflows'...
Listing './.vscode'...
Listing './hyfetch'...
Compiling './hyfetch/constants.py'...
Listing './hyfetch/distros'...
Compiling './hyfetch/distros/haiku.py'...
***   File "./hyfetch/distros/haiku.py", line 18
    \""""              \""""
                            ^
SyntaxError: unexpected character after line continuation character

Compiling './hyfetch/distros/skiffos.py'...
***   File "./hyfetch/distros/skiffos.py", line 14
    ${c1}````'\"""\""""${c2}'\"""\"""""
                       ^
SyntaxError: invalid syntax

Compiling './hyfetch/distros/trisquel.py'...
***   File "./hyfetch/distros/trisquel.py", line 14
    ${c1}     \""""     ${c2}d$$$$"'
                        ^
SyntaxError: invalid syntax

Compiling './hyfetch/main.py'...
Compiling './hyfetch/neofetch_util.py'...
Compiling './hyfetch/presets.py'...
Listing './hyfetch/scripts'...
Compiling './setup.py'...
Listing './tools'...
hykilpikonna commented 1 year ago

Fixed!