Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
hannosch authored and dataflake committed Jan 28, 2020
1 parent ff81b6e commit f79b05c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/webdav/PropertySheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from webdav.xmltools import escape

if sys.version_info >= (3, 0):
if sys.version_info >= (3, ):
basestring = str
unicode = str

Expand Down
2 changes: 1 addition & 1 deletion src/webdav/PropertySheets.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from webdav.common import isDavCollection
from webdav.common import urlbase

if sys.version_info >= (3, 0):
if sys.version_info >= (3, ):
basestring = str
unicode = str

Expand Down
8 changes: 4 additions & 4 deletions src/webdav/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import re
import urllib

from Acquisition import aq_base
from Acquisition import aq_base, aq_parent
from zExceptions import (
HTTPConflict,
HTTPLocked,
Expand Down Expand Up @@ -81,10 +81,10 @@ def urlfix(url, s):

def is_acquired(ob):
# Return true if this object is not a direct
# subobject of its aq_parent object.
if not hasattr(ob, 'aq_parent'):
# subobject of its __parent__ object.
if not hasattr(ob, '__parent__'):
return 0
if hasattr(aq_base(ob.aq_parent), absattr(ob.id)):
if hasattr(aq_base(aq_parent(ob)), absattr(ob.id)):
return 0
if hasattr(aq_base(ob), 'isTopLevelPrincipiaApplicationObject') and \
ob.isTopLevelPrincipiaApplicationObject:
Expand Down

0 comments on commit f79b05c

Please sign in to comment.