def copy(self):
other = ContextModel(self._context, self.parent())<EOL>other._stale = self._stale<EOL>other._modified = self._modified<EOL>other.request = self.request[:]<EOL>other.packages_path = self.packages_path<EOL>other.implicit_packages = self.implicit_packages<EOL>other.package_filter = self.package_filter<EOL>other.caching = self.caching<EOL>other.default_patch_lock = self.default_patch_lock<EOL>other.patch_locks = copy.deepcopy(self.patch_locks)<EOL>return other<EOL>
Returns a copy of the context.