]> git.parisson.com Git - deefuzzer.git/commitdiff
Remove unnecessary variables
authorFrançois LASSERRE <choiz@me.com>
Wed, 13 Aug 2014 19:52:27 +0000 (21:52 +0200)
committerFrançois LASSERRE <choiz@me.com>
Wed, 13 Aug 2014 19:52:27 +0000 (21:52 +0200)
deefuzzer/core.py

index a909f933df99ba258f1a986c294a40b5408e7215..ef0f1fc65adb5b979f1ace20727cd0c82af35e94 100644 (file)
@@ -107,14 +107,11 @@ class DeeFuzzer(Thread):
         m3u = open(self.m3u, 'w')
         m3u.write('#EXTM3U\n')
         for s in self.stations:
-            info = '#EXTINF:%s,%s - %s\n' % ('-1',s.short_name, s.channel.name)
-            url =  'http://' + s.channel.host + ':' + str(s.channel.port) + s.channel.mount + '\n'
-            m3u.write(info)
-            m3u.write(url)
+            m3u.write('#EXTINF:%s,%s - %s\n' % ('-1',s.short_name, s.channel.name))
+            m3u.write('http://' + s.channel.host + ':' + str(s.channel.port) + s.channel.mount + '\n')
         m3u.close()
         self.logger.write_info('Writing M3U file to : ' + self.m3u)
 
-
     def run(self):
         q = Queue.Queue(1)
 
@@ -149,4 +146,3 @@ class Producer(Thread):
         while True:
             q.put(i,1)
             i+=1
-