Add a null syncer that doesn't sync files
@@ -11,7 +11,6 @@ import os
import shutil
from django.conf import settings
-from django.core.exceptions import SuspiciousFileOperation
from django.core.files.storage import get_storage_class
from readthedocs.core.utils import safe_makedirs
@@ -31,6 +30,15 @@ class BaseSyncer:
raise NotImplementedError
+class NullSyncer:
+
+ """A syncer that doesn't actually do anything"""
+
+ @classmethod
+ def copy(cls, path, target, is_file=False, **kwargs):
+ pass # noqa
+
+
class LocalSyncer(BaseSyncer):
@classmethod
