[TD] remove Py2 code from TD
This commit is contained in:
@@ -151,11 +151,7 @@ TechDraw::DrawViewSymbol* TaskActiveView::createActiveView(void)
|
||||
ui->qsbWeight->rawValue(),
|
||||
ui->qsbBorder->rawValue(),
|
||||
ui->cbMode->currentIndex());
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
Command::doCommand(Command::Doc,"f = open(unicode(\"%s\",'utf-8'),'r')",(const char*)fileSpec.c_str());
|
||||
#else
|
||||
Command::doCommand(Command::Doc,"f = open(\"%s\",'r')",(const char*)fileSpec.c_str());
|
||||
#endif
|
||||
Command::doCommand(Command::Doc,"svg = f.read()");
|
||||
// Command::doCommand(Command::Doc,"print('length of svg: {}'.format(len(svg)))");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user