mirror of
https://github.com/socialwifi/RouterOS-api.git
synced 2025-08-31 07:09:48 +02:00
5 lines
120 B
Python
5 lines
120 B
Python
def get_bytes(string):
|
|
if hasattr(string, 'encode'):
|
|
return string.encode()
|
|
else:
|
|
return string
|