Patchwork [2,of,5,in,crew] statichttprepo: add missing import of os

login
register
mail settings
Submitter Bryan O'Sullivan
Date April 13, 2013, 12:20 a.m.
Message ID <169030d9255eb6d91897.1365812443@australite.local>
Download mbox | patch
Permalink /patch/1290/
State Accepted
Commit 169030d9255eb6d9189760b52a72c8d2a1ef45c6
Headers show

Comments

Bryan O'Sullivan - April 13, 2013, 12:20 a.m.
# HG changeset patch
# User Bryan O'Sullivan <bryano@fb.com>
# Date 1365812225 25200
#      Fri Apr 12 17:17:05 2013 -0700
# Node ID 169030d9255eb6d9189760b52a72c8d2a1ef45c6
# Parent  05d5821e0dc85bff757e6bace3e7978b6d0f2aef
statichttprepo: add missing import of os

Found using Cython.

Patch

diff --git a/mercurial/statichttprepo.py b/mercurial/statichttprepo.py
--- a/mercurial/statichttprepo.py
+++ b/mercurial/statichttprepo.py
@@ -10,7 +10,7 @@ 
 from i18n import _
 import changelog, byterange, url, error
 import localrepo, manifest, util, scmutil, store
-import urllib, urllib2, errno
+import urllib, urllib2, errno, os
 
 class httprangereader(object):
     def __init__(self, url, opener):