diff --git a/bigquery_datatransfer/google/cloud/__init__.py b/bigquery_datatransfer/google/cloud/__init__.py index a7d3cd38d46d..f65701dd143f 100644 --- a/bigquery_datatransfer/google/cloud/__init__.py +++ b/bigquery_datatransfer/google/cloud/__init__.py @@ -20,4 +20,3 @@ except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) - diff --git a/bigquery_datatransfer/synth.py b/bigquery_datatransfer/synth.py index 14291ec12862..d04d66a9e282 100644 --- a/bigquery_datatransfer/synth.py +++ b/bigquery_datatransfer/synth.py @@ -35,15 +35,8 @@ 'nox.py', 'setup.py'] ) -# Generator is removing ending line of __init__.py s.replace( - 'google/cloud/__init__.py', - '__path__ = pkgutil.extend_path\(__path__, __name__\)', - '\g<0>\n' -) - -s.replace( - ['google/cloud/bigquery_datatransfer_v1/proto/datatransfer_pb2.py', + ['google/cloud/bigquery_datatransfer_v1/proto/datatransfer_pb2.py', 'google/cloud/bigquery_datatransfer_v1/proto/datatransfer_pb2_grpc.py'], 'from google.cloud.bigquery.datatransfer_v1.proto', 'from google.cloud.bigquery_datatransfer_v1.proto' diff --git a/dlp/google/__init__.py b/dlp/google/__init__.py index a7d3cd38d46d..f65701dd143f 100644 --- a/dlp/google/__init__.py +++ b/dlp/google/__init__.py @@ -20,4 +20,3 @@ except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) - diff --git a/dlp/google/cloud/__init__.py b/dlp/google/cloud/__init__.py index a7d3cd38d46d..f65701dd143f 100644 --- a/dlp/google/cloud/__init__.py +++ b/dlp/google/cloud/__init__.py @@ -20,4 +20,3 @@ except ImportError: import pkgutil __path__ = pkgutil.extend_path(__path__, __name__) - diff --git a/dlp/synth.py b/dlp/synth.py index b85c55cb57a3..173de5daa8f5 100644 --- a/dlp/synth.py +++ b/dlp/synth.py @@ -50,13 +50,6 @@ "google.cloud.dlp_v2" ) -# Add newlines to end of files -s.replace( - ["google/__init__.py", "google/cloud/__init__.py"], - "__path__ = pkgutil.extend_path\(__path__, __name__\)", - "\g<0>\n" -) - # Add missing utf-8 marker s.replace( "google/cloud/dlp_v2/proto/dlp_pb2.py",