From ec94bfb4efe572f1bf252eff0e428f5a5e728ffa Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 7 Apr 2011 15:11:50 +0200 Subject: Rename getDateTime to get_datetime to conform to method naming --- AirPlayService.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AirPlayService.py b/AirPlayService.py index 5b4e58c..925b4e0 100644 --- a/AirPlayService.py +++ b/AirPlayService.py @@ -126,7 +126,7 @@ class AirPlayProtocolHandler(asyncore.dispatcher_with_send): if(answer is not ""): self.send(answer) - def getDateTime(self): + def get_datetime(self): today = datetime.now() datestr = today.strftime("%a, %d %b %Y %H:%M:%S") return datestr+" GMT" @@ -141,7 +141,7 @@ class AirPlayProtocolHandler(asyncore.dispatcher_with_send): answer = "HTTP/1.1 101 Switching Protocols" answer += "\nUpgrade: PTTH/1.0" answer += "\nConnection: Upgrade" - answer += "\nDate: " + self.getDateTime() + answer += "\nDate: " + self.get_datetime() answer += "\nContent-Length: " + str(clength) if (header != ""): answer += "\n" + header -- cgit v1.1-32-gdbae