Mercurial > ~astiob > upreckon > hgweb
comparison config.py @ 91:c62c9bfd614a
Removed import_error
It was buggy anyway.
| author | Oleg Oshmyan <chortos@inbox.lv> |
|---|---|
| date | Mon, 28 Feb 2011 16:05:20 +0000 |
| parents | cd347cfca272 |
| children | 17041a71bc02 |
comparison
equal
deleted
inserted
replaced
| 90:1fb319ec33af | 91:c62c9bfd614a |
|---|---|
| 1 # Copyright (c) 2010-2011 Chortos-2 <chortos@inbox.lv> | 1 # Copyright (c) 2010-2011 Chortos-2 <chortos@inbox.lv> |
| 2 | 2 |
| 3 from __future__ import division, with_statement | 3 from __future__ import division, with_statement |
| 4 | 4 |
| 5 try: | 5 from compat import * |
| 6 from compat import * | 6 import files |
| 7 import files | 7 from __main__ import options |
| 8 except ImportError: | |
| 9 import __main__ | |
| 10 __main__.import_error(sys.exc_info()[1]) | |
| 11 else: | |
| 12 from __main__ import options | |
| 13 | 8 |
| 14 if files.ZipArchive: | 9 if files.ZipArchive: |
| 15 try: | 10 try: |
| 16 import zipimport | 11 import zipimport |
| 17 except ImportError: | 12 except ImportError: |
