diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-03-12 11:01:10 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-03-12 11:01:10 (GMT) |
commit | 2681beb23e3a8d9d905d99f9e67bb0389264f44f (patch) | |
tree | 56814b2addc67a85ff972fbe7664b2b5095bf84b /Lib/site.py | |
parent | eb62357a2e8c18fc014e9e977acf1e2026e5d9cf (diff) | |
download | cpython-2681beb23e3a8d9d905d99f9e67bb0389264f44f.zip cpython-2681beb23e3a8d9d905d99f9e67bb0389264f44f.tar.gz cpython-2681beb23e3a8d9d905d99f9e67bb0389264f44f.tar.bz2 |
Patch #1677862: Require a space or tab after import in .pth files.
Diffstat (limited to 'Lib/site.py')
-rw-r--r-- | Lib/site.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py index 113f221..5033f8a 100644 --- a/Lib/site.py +++ b/Lib/site.py @@ -134,7 +134,7 @@ def addpackage(sitedir, name, known_paths): for line in f: if line.startswith("#"): continue - if line.startswith("import"): + if line.startswith("import ") or line.startswith("import\t"): exec line continue line = line.rstrip() |