Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
auto() removed
Browse files Browse the repository at this point in the history
  • Loading branch information
zrzka committed Jan 11, 2018
1 parent 04512f9 commit 8134462
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions blackmamba/framework/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
load_framework, c, ns, ObjCInstance, nsdata_to_bytes, NSString, NSData, NSNumber,
ObjCClass, NSArray, NSDictionary
)
from enum import Enum, IntFlag, auto
from enum import Enum, IntFlag
import datetime
import blackmamba.system as system
from typing import List, Union
Expand Down Expand Up @@ -175,9 +175,10 @@ def _symbol_ptr(name):

def _str_symbol(name):
# [TODO] Sphinx quick hack, remove
if system.IOS:
return ObjCInstance(_symbol_ptr(name)).UTF8String().decode()
return auto()
if not system.IOS:
return name

return ObjCInstance(_symbol_ptr(name)).UTF8String().decode()


#
Expand Down

0 comments on commit 8134462

Please sign in to comment.