| OLD | NEW |
| (Empty) | |
| 1 #!/usr/bin/env python |
| 2 # |
| 3 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 """Removes spaces from a given string.""" |
| 8 |
| 9 import sys |
| 10 |
| 11 def main(): |
| 12 if len(sys.argv) < 1: |
| 13 print 'Usage: %s <string>' % sys.argv[0] |
| 14 sys.exit(1) |
| 15 |
| 16 # Takes all arguments passed in, joins as one string, and removes spaces. |
| 17 nospace = "".join(sys.argv[1:]).replace(" ", "") |
| 18 print(nospace) |
| 19 |
| 20 if __name__ == '__main__': |
| 21 sys.exit(main()) |
| OLD | NEW |