diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-08-16 22:50:09 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-08-16 23:32:39 +0300 |
commit | 78739afd9c75fd0b7265536c41922abe7be7a8e4 (patch) | |
tree | 2eac60fbe83640b2d9e0bcd15c883f827d98dba7 /interpreter.py | |
parent | 63572626c69fc888b6fa94d00cf1bfcb7bb3c652 (diff) | |
download | meson-78739afd9c75fd0b7265536c41922abe7be7a8e4.zip meson-78739afd9c75fd0b7265536c41922abe7be7a8e4.tar.gz meson-78739afd9c75fd0b7265536c41922abe7be7a8e4.tar.bz2 |
Use system() instead of name() which is a confusing term.
Diffstat (limited to 'interpreter.py')
-rw-r--r-- | interpreter.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/interpreter.py b/interpreter.py index 91ec6aa..cd4788f 100644 --- a/interpreter.py +++ b/interpreter.py @@ -305,7 +305,7 @@ class GeneratedListHolder(InterpreterObject): class BuildMachine(InterpreterObject): def __init__(self): InterpreterObject.__init__(self) - self.methods.update({'name' : self.name_method, + self.methods.update({'system' : self.system_method, 'cpu' : self.cpu_method, 'endian' : self.endian_method, }) @@ -326,7 +326,7 @@ class BuildMachine(InterpreterObject): # Add fixes here as bugs are reported. return trial - def name_method(self, args, kwargs): + def system_method(self, args, kwargs): return platform.system().lower() def endian_method(self, args, kwargs): @@ -338,13 +338,13 @@ class CrossMachineInfo(InterpreterObject): def __init__(self, cross_info): InterpreterObject.__init__(self) self.info = cross_info - self.methods.update({'name' : self.name_method, + self.methods.update({'system' : self.system_method, 'cpu' : self.cpu_method, 'endian' : self.endian_method, }) - def name_method(self, args, kwargs): - return self.info['name'] + def system_method(self, args, kwargs): + return self.info['system'] def cpu_method(self, args, kwargs): return self.info['cpu'] |