Code: Alles auswählen
/bin/sh: /data/home/technik/syncbase/ta_syncbase.py: /usr/bin/python^M: bad interpreter: No such file or directory
Code: Alles auswählen
#!/usr/bin/python
# -*- coding: utf-8 -*-
import gdata.base.service
import gdata.service
try:
from xml.etree import ElementTree
except ImportError:
from elementtree import ElementTree
import atom
import gdata.base
import getpass
import MySQLdb
import time
import datetime
from ConfigParser import ConfigParser
def special_chars(zeile):
text = zeile.replace("ä", "a")
text = text.replace("Ä", "A")
text = text.replace("ö", "o")
text = text.replace("Ö", "ö")
text = text.replace("ü", "u")
text = text.replace("Ü", "ü")
text = text.replace("ß", "ss")
text = text.replace("é", "e")
text = text.replace("°", "")
text = text.replace("ą", "")
text = text.replace("ć", "")
text = text.replace("ę", "")
text = text.replace("ł", "")
text = text.replace("ń", "")
text = text.replace("ó", "")
text = text.replace("ś", "")
text = text.replace("ż", "")
text = text.replace("Ą", "")
text = text.replace(" ", "-")
text = text.replace("/", "-")
text = text.replace("(", "-")
text = text.replace(")", "-")
text = text.replace(".", "-")
text = text.replace(",", "-")
text = text.replace(":", "-")
text = text.replace("+", "-")
text = text.replace('"', "")
text = text.replace("'", "")
text = text.replace("?", "")
text = text.replace("%", "")
text = text.replace("!", "")
text = text.replace(";", "")
text = text.replace("@", "")
text = text.replace("#", "")
text = text.replace("$", "")
text = text.replace("^", "")
text = text.replace("&", "")
text = text.replace("{", "")
text = text.replace("}", "")
text = text.replace("[", "")
text = text.replace("]", "")
text = text.replace("\\", "")
text = text.replace("|", "")
text = text.replace("™", "")
text = text.replace("®", "")
text = text.replace("©", "")
text = text.replace("€", "")
text = text.replace("`", "")
text = text.replace("_", "")
return text
Dank im Voraus