Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: remoting/tools/remove_spaces.py

Issue 2424893003: Renaming package names to use no spaces. (Closed)
Patch Set: Merging master into mac_dmg_name. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« remoting/remoting_version.gni ('K') | « remoting/remoting_version.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/tools/remove_spaces.py
diff --git a/remoting/tools/remove_spaces.py b/remoting/tools/remove_spaces.py
new file mode 100755
index 0000000000000000000000000000000000000000..7eefb38778f0b69f8093ba05506047d803b65002
--- /dev/null
+++ b/remoting/tools/remove_spaces.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+#
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""Removes spaces from a given string."""
+
+import sys
+
+def main():
+ if len(sys.argv) < 1:
+ print 'Usage: %s <string>' % sys.argv[0]
+ sys.exit(1)
+
+ # Takes all arguments passed in, joins as one string, and removes spaces.
+ nospace = "".join(sys.argv[1:]).replace(" ", "")
+ print(nospace)
+
+if __name__ == '__main__':
+ sys.exit(main())
« remoting/remoting_version.gni ('K') | « remoting/remoting_version.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698