Changeset 314:09f49b9eef64 for src/mlx/pyuipc_sim.py
- Timestamp:
- 09/30/12 06:53:14 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/pyuipc_sim.py
r298 r314 1330 1330 def do_set(self, args): 1331 1331 """Handle the set command.""" 1332 arguments = args.split() 1332 arguments = [] 1333 inWord = False 1334 inQuote = False 1335 word = "" 1336 for c in args: 1337 if c.isspace() and not inQuote: 1338 if inWord: 1339 arguments.append(word) 1340 word = "" 1341 inWord = False 1342 elif c=='"': 1343 inQuote = not inQuote 1344 else: 1345 inWord = True 1346 word += c 1347 1348 if inWord: 1349 arguments.append(word) 1350 1333 1351 names = [] 1334 1352 data = []
Note:
See TracChangeset
for help on using the changeset viewer.