mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Minor style adjustments
This commit is contained in:
parent
db12d15e08
commit
568867c80a
5 changed files with 27 additions and 31 deletions
|
|
@ -156,10 +156,12 @@ void print_const(PycRef<PycObject> obj, PycModule* mod, const char* parent_f_str
|
|||
|
||||
switch (obj->type()) {
|
||||
case PycObject::TYPE_STRING:
|
||||
OutputString(obj.cast<PycString>(), mod->strIsUnicode() ? 'b' : 0, false, pyc_output, parent_f_string_quote);
|
||||
OutputString(obj.cast<PycString>(), mod->strIsUnicode() ? 'b' : 0,
|
||||
false, pyc_output, parent_f_string_quote);
|
||||
break;
|
||||
case PycObject::TYPE_UNICODE:
|
||||
OutputString(obj.cast<PycString>(), mod->strIsUnicode() ? 0 : 'u', false, pyc_output, parent_f_string_quote);
|
||||
OutputString(obj.cast<PycString>(), mod->strIsUnicode() ? 0 : 'u',
|
||||
false, pyc_output, parent_f_string_quote);
|
||||
break;
|
||||
case PycObject::TYPE_STRINGREF:
|
||||
case PycObject::TYPE_INTERNED:
|
||||
|
|
@ -170,7 +172,8 @@ void print_const(PycRef<PycObject> obj, PycModule* mod, const char* parent_f_str
|
|||
if (mod->majorVer() >= 3)
|
||||
OutputString(obj.cast<PycString>(), 0, false, pyc_output, parent_f_string_quote);
|
||||
else
|
||||
OutputString(obj.cast<PycString>(), mod->strIsUnicode() ? 'b' : 0, false, pyc_output, parent_f_string_quote);
|
||||
OutputString(obj.cast<PycString>(), mod->strIsUnicode() ? 'b' : 0,
|
||||
false, pyc_output, parent_f_string_quote);
|
||||
break;
|
||||
case PycObject::TYPE_TUPLE:
|
||||
case PycObject::TYPE_SMALL_TUPLE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue