File: token-is_whitespace-fix.patch

package info (click to toggle)
twextpy 1%3A0.1~git20161216.0.b90293c-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,724 kB
  • sloc: python: 20,458; sh: 742; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 381 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
--- a/twext/enterprise/dal/parseschema.py
+++ b/twext/enterprise/dal/parseschema.py
@@ -721,7 +721,7 @@
     not whitespace.
     """
     # comment has None is_whitespace() result.  intentional?
-    return (not isinstance(token, Comment) and not token.is_whitespace())
+    return (not isinstance(token, Comment) and not token.is_whitespace)
 
 
 def iterSignificant(tokenList):