http://www.jeffreyhunsaker.com/2008/01/posting-code-on-blogger.html
http://blog.gpowered.net/2007/07/howto-post-code.html
http://yacoding.blogspot.com/2008/05/how-to-add-syntax-highlight-to-blogger.html
#!/usr/bin/python
# Python conterpart of rsync written by Vivian De Smedt
# Send any comment or bug report to vivian@vdesmedt.com.
# I would like to thanks William Tan for its support in tuning rsync.py to support unicode path.
# I would like to thanks Luc Saffre for its bug reports and fixes.
#from __future__ import nested_scopes
import os, os.path, shutil, glob, re, sys, getopt, stat, string
try:
import win32file
except:
win32file = None
class Cookie:
def __init__(self):
self.sink_root = ""
self.target_root = ""
self.quiet = 0
self.recursive = 0
self.relative = 0
self.dry_run = 0
self.time = 0
self.update = 0
self.cvs_ignore = 0
self.ignore_time = 0
self.delete = 0
self.delete_excluded = 0
self.delete_from_source = 0
self.size_only = 0
self.modify_window = 2
self.existing = 0
self.filters = []
self.case_sensitivity = 0
if os.name == "nt":
self.case_sensitivity = re.I