Mercurial > hg > MakeItSo
comparison makeitso/makeitso.py @ 21:c879b93c3f15
stub out fetching tempita from the internet; bitbucket is down, so no further work here atm
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sun, 21 Nov 2010 12:56:37 -0800 |
parents | 1818cc524cde |
children | fc2867bc2ba6 |
comparison
equal
deleted
inserted
replaced
20:6d1c703c5ffc | 21:c879b93c3f15 |
---|---|
5 | 5 |
6 import os | 6 import os |
7 import re | 7 import re |
8 import subprocess | 8 import subprocess |
9 import sys | 9 import sys |
10 import tempfile | |
10 import urllib | 11 import urllib |
11 | 12 |
12 from optparse import OptionParser | 13 from optparse import OptionParser |
13 | 14 |
15 # URL of this file | |
16 location = 'http://k0s.org/mozilla/hg/MakeItSo/raw-file/tip/makeitso/makeitso.py' | |
17 | |
18 # URL of tempita | |
19 tempita_location = 'http://bitbucket.org/ianb/tempita/raw-file/tip/tempita/' | |
20 | |
14 try: | 21 try: |
15 import tempita | 22 import tempita |
16 except ImportError: | 23 except ImportError: |
24 | |
25 # Get tempita from the net | |
26 def getFiles(url, files): | |
27 """ | |
28 fetch files from the internet | |
29 - url : base url | |
30 - files : list of files to retrieve | |
31 returns the location of a temporary directory | |
32 """ | |
33 | |
17 raise NotImplementedError | 34 raise NotImplementedError |
18 | 35 |
19 # URL of this file | 36 # URL of this file |
20 location = 'http://k0s.org/mozilla/hg/MakeItSo/raw-file/tip/makeitso/makeitso.py' | 37 location = 'http://k0s.org/mozilla/hg/MakeItSo/raw-file/tip/makeitso/makeitso.py' |
21 | 38 |