mirror of
https://github.com/servo/servo.git
synced 2025-08-14 18:05:36 +01:00
Update CSS tests to revision c8ec30de8099360ecf6581035bfdf2180fcc9755
Necessary for: https://github.com/servo/servo/pull/7117
This commit is contained in:
parent
e46499a5df
commit
c51deb9a6e
156 changed files with 13569 additions and 535 deletions
|
@ -46,6 +46,18 @@ class SourceFile(object):
|
|||
|
||||
self.meta_flags = self.name.split(".")[1:]
|
||||
|
||||
def __getstate__(self):
|
||||
# Remove computed properties if we pickle this class
|
||||
rv = self.__dict__.copy()
|
||||
|
||||
if "__cached_properties__" in rv:
|
||||
cached_properties = rv["__cached_properties__"]
|
||||
for key in rv.keys():
|
||||
if key in cached_properties:
|
||||
del rv[key]
|
||||
del rv["__cached_properties__"]
|
||||
return rv
|
||||
|
||||
def name_prefix(self, prefix):
|
||||
"""Check if the filename starts with a given prefix
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue