Skip to content

Commit

Permalink
Fix stray, lint-breaking blank lines from autosynth. (#5960)
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver authored Sep 12, 2018
1 parent ea41e4c commit 001e897
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 18 deletions.
1 change: 0 additions & 1 deletion bigquery_datatransfer/google/cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

9 changes: 1 addition & 8 deletions bigquery_datatransfer/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 0 additions & 1 deletion dlp/google/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

1 change: 0 additions & 1 deletion dlp/google/cloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,3 @@
except ImportError:
import pkgutil
__path__ = pkgutil.extend_path(__path__, __name__)

7 changes: 0 additions & 7 deletions dlp/synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 001e897

Please sign in to comment.