Fixing Import Cycles.

Sean Farley sean at farley.io
Mon Feb 29 14:56:15 EST 2016


Pulkit Goyal <7895pulkit at gmail.com> writes:

> Sir need a bit of help moving further.

You might want to read the part about "sir":

https://wiki.python.org/moin/SummerOfCode/2016

I've been out of town for the last few days so keeping the mailing list
in the loop would have improved chances of someone responding.

Original message:

Pulkit Goyal <7895pulkit at gmail.com> writes:

> Doing that I got a error
> 
> File
> "/tmp/hgtests.x7OlIw/install/lib/python/hgext/largefiles/localstore.py",
> line 39, in __init__
> +      super(localstore, self).__init__(ui, repo, self.remote.url())
> +  TypeError: must be type, not classobj
> 
> which will be resolved as follows
> 
> diff -r c9adc9ceb642 hgext/largefiles/localstore.py
> --- a/hgext/largefiles/localstore.py    Fri Feb 26 21:40:53 2016 +0530
> +++ b/hgext/largefiles/localstore.py    Fri Feb 26 21:41:06 2016 +0530
> @@ -29,7 +29,7 @@
>      def __str__(self):
>          return "%s: %s" % (util.hidepassword(self.url), self.detail)
> 
> -class localstore():
> +class localstore(object):
>      '''localstore first attempts to grab files out of the store in the
> remote
>      Mercurial repository.  Failing that, it attempts to grab the files from
>      the user cache.'''
> 
> Then I got a new error,
> 
>  File
> "/tmp/hgtests.VSUsjq/install/lib/python/hgext/largefiles/localstore.py",
> line 39, in __init__
> +      super(localstore, self).__init__(ui, repo, self.remote.url())
> +  TypeError: object.__init__() takes no parameters
> 
> Now trying debugging the same.


More information about the Mercurial-devel mailing list