2019-03-12 10:09:46 +01:00
|
|
|
const Language = require('../struct/Language');
|
|
|
|
|
|
|
|
class Python extends Language {
|
|
|
|
constructor() {
|
|
|
|
super('python', {
|
2019-03-13 06:13:49 +01:00
|
|
|
aliases: ['python', 'py'],
|
2019-03-13 06:32:27 +01:00
|
|
|
loads: ['python3', 'python2'],
|
2019-03-13 06:13:49 +01:00
|
|
|
options: {
|
|
|
|
2: () => ''
|
|
|
|
}
|
2019-03-12 10:09:46 +01:00
|
|
|
});
|
|
|
|
}
|
2019-03-13 06:13:49 +01:00
|
|
|
|
|
|
|
runWith(options) {
|
|
|
|
if (options.has('2')) {
|
2019-03-16 03:13:38 +01:00
|
|
|
return { id: 'python2' };
|
2019-03-13 06:13:49 +01:00
|
|
|
}
|
|
|
|
|
2019-03-16 03:13:38 +01:00
|
|
|
return { id: 'python3' };
|
2019-03-13 06:13:49 +01:00
|
|
|
}
|
2019-03-12 10:09:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Python;
|