Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The calendar module is not working #2136

Closed
tdmsilvino opened this issue Jan 3, 2023 · 0 comments
Closed

The calendar module is not working #2136

tdmsilvino opened this issue Jan 3, 2023 · 0 comments

Comments

@tdmsilvino
Copy link

Hello,

The calendar module is not working. I can import the module, but when I try to generate a calendar it fails.

Script:

import calendar

cal = calendar.calendar(2023)

Error message:

brython.min.js:1 Traceback (most recent call last):
  File "http://127.0.0.1:5500/a-model.html#__main__", line 3, in <module>
    cal = calendar.calendar(2023)
  File "VFS.calendar.py", line 389, in formatyear
    a(formatstring(names,colwidth,c).rstrip())
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "VFS.calendar.py", line 646, in formatstring
    return spacing.join(c.center(colwidth)for c in cols)
           ^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'join'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant