You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should the TimezoneComponent.prettyPrint() function use the same default
values as the equivalent function in other classes? I discovered that
The method in TimezoneComponent have this prototype:
def prettyPrint(self, level, tabwidth):
While the base class Component have this prototype:
import vobject
icalstream = open(file)
components = vobject.readComponents(icalstream, validate=True)
cal = components.next()
for c in cal.getChildren():
print c.prettyPrint()
The text was updated successfully, but these errors were encountered:
This is a method signature mismatch issue, and it can be fixed/avoided by using linters.
There can be other methods with this issue and similar issues.
So, I think all can be addressed when linters are added.
Import from: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=849882
Should the
TimezoneComponent.prettyPrint()
function use the same defaultvalues as the equivalent function in other classes? I discovered that
The method in
TimezoneComponent
have this prototype:While the base class Component have this prototype:
This made my code fail with this message:
This code demonstrates the problem:
The text was updated successfully, but these errors were encountered: