Python3 doesn't seem to allow you to tell whether an object is a class
PyClass_Check and everything it relied on seems gone from Python3.7. So I won't check whether it is a class first... Also cleaned up a couple of warnings. llvm-svn: 373679
This commit is contained in:
@@ -18,7 +18,7 @@ OptionGroupPythonClassWithDict::OptionGroupPythonClassWithDict
|
||||
int class_option,
|
||||
int key_option,
|
||||
int value_option,
|
||||
char *class_long_option,
|
||||
const char *class_long_option,
|
||||
const char *key_long_option,
|
||||
const char *value_long_option,
|
||||
bool required) {
|
||||
@@ -77,7 +77,6 @@ Status OptionGroupPythonClassWithDict::SetOptionValue(
|
||||
llvm::StringRef option_arg,
|
||||
ExecutionContext *execution_context) {
|
||||
Status error;
|
||||
const int short_option = m_option_definition[option_idx].short_option;
|
||||
switch (option_idx) {
|
||||
case 0: {
|
||||
m_class_name.assign(option_arg);
|
||||
|
||||
Reference in New Issue
Block a user