From 14a6e68fb809ec5b1c74e90115a750e264363e68 Mon Sep 17 00:00:00 2001 From: berhsi Date: Sat, 27 Jul 2019 02:19:46 +0200 Subject: [PATCH] =?UTF-8?q?kodierung.py=20gel=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kodierung.py | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 kodierung.py diff --git a/kodierung.py b/kodierung.py deleted file mode 100644 index 33bb232..0000000 --- a/kodierung.py +++ /dev/null @@ -1,26 +0,0 @@ -import sys - -def byteorder(): - return sys.byteorder - -def standart_encoding(): - return sys.getdefaultencoding() - -def standart_ausgabeencoding(): - return sys.stdout.encoding() - -def string2bytes(text): - try: - bytestream = bytes(text, "utf-8") - except Exception as e: - print('string2bytes: error: {}'.format(e)) - return - return bytestream - -def bytes2string(bytes): - try: - text = str(bytes, "utf-8") - except Exception as e: - print('bytes2string: error: {}'.format(e)) - text = '' - return text