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

fix 'type' object cannot be interpreted as an integer #1376

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 2, 2023

  1. fix 'type' object cannot be interpreted as an integer

    PDB stacktrace:
    ```
     plugins/twitter_bootstrap_rst_directives/bootstrap_rst_directives.py(369)run()
    -> child.set_class('alert-link')
    > tmp/lib/python3.7/site-packages/docutils/nodes.py(1072)set_class()
    -> DeprecationWarning, stacklevel=2)
    ```
    
    The deprecated function code:
    ```
      1067     def set_class(self, name):
      1068         """Add a new class to the "classes" attribute."""
      1069         warnings.warn('docutils.nodes.Element.set_class() is deprecated; '
      1070                       ' and will be removed in Docutils 0.21 or later.',
      1071                       "Append to Element['classes'] list attribute directly",
      1072                       DeprecationWarning, stacklevel=2)
      1073         assert ' ' not in name
      1074         self['classes'].append(name.lower())
    ```
    spaceone committed Jan 2, 2023
    Configuration menu
    Copy the full SHA
    84f1922 View commit details
    Browse the repository at this point in the history