Ignore:
Timestamp:
09/30/12 06:53:14 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added support for the landing lights and the NAV frequencies being unreliable and the Digital Aviation F70 model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/pyuipc_sim.py

    r298 r314  
    13301330    def do_set(self, args):
    13311331        """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           
    13331351        names = []
    13341352        data = []
Note: See TracChangeset for help on using the changeset viewer.