Thanks. This also fixed it for me.
Guess what: I'm new to Python :-)
On 29 Mrz., 15:03, Gilhad <[EMAIL PROTECTED]> wrote:
> On Wednesday 28 March 2007 11:50, wheresdave wrote:
>
> > got it fixed. Whitespace was showing up before pass. found the setting
> > in scite to show whitespace.
>
> Well, whitespaces in Python are pretty difficult to keep in line, if you are
> used to other languages.
> I personally use Tabs for intending and VIM editor and have it to make Tabs
> visible like dark blue |------,
> so my code is presented to me as this:
>
> |-------song_file = audiofiles.Song_File_class(tempfile)
> |-------if os.path.isfile(song_file.filename):
> |-------|-------for com in song_file.recog_comms:
> |-------|-------|-------song_file.info_dictionary [string.lower(com)] = ""
> |-------|-------rest, ext = os.path.splitext(song_file.filename)
> |-------|-------ext = ext.lower()
> |-------|-------if ext == ".ogg":
> |-------|-------|-------song_file.OggFile()
> |-------|-------elif ext == ".mp3":
> |-------|-------|-------song_file.Mp3File()
> |-------|-------else:
> |-------|-------|-------raise Http404
> |-------if filename[-4:] == '.ogg':
> |-------|-------ch=0
> |-------|-------ogginfo_rows = os.popen('cd "%s";ogginfo "%s" ' %
> (temp_dir,tempfile))
> |-------|-------for row in ogginfo_rows:
> |-------|-------|-------if -1<row.find('Channels:'):
> |-------|-------|-------|-------if 0 > row.find('2'): # Pokud nemame
> Channels: 2
> |-------|-------|-------|-------|-------new_tempfile=tempfile[:-4]+'_new.ogg'
> |-------|-------|-------|-------|-------os.system('cd "%s"; sox "%s" -c2
> "%s"' % (temp_dir,tempfile,new_tempfile))
> |-------|-------|-------|-------|-------os.system('mv "%s" "%s"' %
> (new_tempfile,tempfile))
> |-------comments = song_file.get_info_key('description')
> |-------comment = ""
>
> So it is clear, what indentation is where ;-)
>
> --
> Zdravi
> Gilhad
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---