diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/src/rezplugins/shell/_utils/powershell_base.py b/src/rezplugins/shell/_utils/powershell_base.py index <HASH>..<HASH> 100644 --- a/src/rezplugins/shell/_utils/powershell_base.py +++ b/src/rezplugins/shell/_utils/powershell_base.py @@ -97,8 +97,7 @@ class PowerShellBase(Shell): cmd = ["powershell"...
Remove "shell=True" for Popen call
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -58,6 +58,7 @@ setup( }, packages=find_packages(".", exclude=["docs", "tests"]), include_package_data=True, + zip_safe=False, platforms="any", classifiers=[ "Development Status :: 4 - Beta"...
GNS3 server can't be keep as zipped egg
py
diff --git a/bcbio/structural/purecn.py b/bcbio/structural/purecn.py index <HASH>..<HASH> 100644 --- a/bcbio/structural/purecn.py +++ b/bcbio/structural/purecn.py @@ -165,7 +165,10 @@ def _run_purecn(paired, work_dir): # Use UCSC style naming for human builds to support BSgenome genome = ("hg1...
Adjust paired PureCN to the new way of locating PureCN.R (#<I>) Unlike run_purecn_normaldb, run_purecn was never adjusted.
py
diff --git a/testing/test_doctest.py b/testing/test_doctest.py index <HASH>..<HASH> 100644 --- a/testing/test_doctest.py +++ b/testing/test_doctest.py @@ -145,8 +145,8 @@ class TestDoctests: doctest_encoding={0} """.format(encoding)) doctest = u""" - >>> u"{}" - {} +...
Fixed the tests for python <I>
py
diff --git a/jtskit/types.py b/jtskit/types.py index <HASH>..<HASH> 100644 --- a/jtskit/types.py +++ b/jtskit/types.py @@ -43,10 +43,20 @@ class IntegerType(JTSType): class NumberType(JTSType): py = float, decimal.Decimal + seperators = ',;' + currencies = '$' + + def __init__(self, strip_seperators=Fa...
Handle certain characters in numbers to allow number fields to be valid when they appear.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup( packages=["click_odoo"], include_package_data=True, setup_requires=["setuptools_scm"], - install_requires=["click"], + install_requires=["click>=7"], license="LGPLv3+", auth...
Require click>=7 Previous version do not have click.exceptions.Exit.
py
diff --git a/src/nmi/builds/remote_post.py b/src/nmi/builds/remote_post.py index <HASH>..<HASH> 100755 --- a/src/nmi/builds/remote_post.py +++ b/src/nmi/builds/remote_post.py @@ -10,10 +10,20 @@ import os import tarfile -import nmiOpts +from optparse import OptionParser + +def OptionParserInit(): + parser = Opti...
folded in tiny option code for now, so it doesn't need a custom module
py
diff --git a/pupa/scrape/base.py b/pupa/scrape/base.py index <HASH>..<HASH> 100644 --- a/pupa/scrape/base.py +++ b/pupa/scrape/base.py @@ -172,7 +172,7 @@ class BaseModel(object): validator = utils.DatetimeValidator(required_by_default=False) try: - validator.validate(self.as_dict(), sche...
set fail_fast=False for multiple errors
py
diff --git a/bitex/interfaces/__init__.py b/bitex/interfaces/__init__.py index <HASH>..<HASH> 100644 --- a/bitex/interfaces/__init__.py +++ b/bitex/interfaces/__init__.py @@ -12,4 +12,5 @@ from bitex.interfaces.rocktrading import RockTradingLtd from bitex.interfaces.yunbi import Yunbi from bitex.interfaces.poloniex i...
Added GDAX to global import
py
diff --git a/wikitextparser/__init__.py b/wikitextparser/__init__.py index <HASH>..<HASH> 100644 --- a/wikitextparser/__init__.py +++ b/wikitextparser/__init__.py @@ -11,6 +11,7 @@ from . import wikitext as _wikitext from .table import Table from .template import Template from .parser_function import ParserFunction ...
from .tag import Tag The tag module is almost ready.
py
diff --git a/plexapi/library.py b/plexapi/library.py index <HASH>..<HASH> 100644 --- a/plexapi/library.py +++ b/plexapi/library.py @@ -295,7 +295,7 @@ class Library(PlexObject): 46:United Kingdom, 47:United States, 48:Uruguay, 49:Venezuela. """ if isinstance(location, str): - ...
refactor for new method to check if path exists
py
diff --git a/.github/workflows/install_deps.py b/.github/workflows/install_deps.py index <HASH>..<HASH> 100644 --- a/.github/workflows/install_deps.py +++ b/.github/workflows/install_deps.py @@ -40,6 +40,7 @@ def install_packages(what): packages['exhibitor'] = packages['zookeeper'] packages = packages.get(wha...
Fix build (#<I>) run apt-get update before installing packages
py
diff --git a/yfinance/base.py b/yfinance/base.py index <HASH>..<HASH> 100644 --- a/yfinance/base.py +++ b/yfinance/base.py @@ -294,6 +294,14 @@ class TickerBase(): if isinstance(data.get(item), dict): self._info.update(data[item]) + self._info['logo_url'] = "" + try: + ...
added logo url to .info
py
diff --git a/sos/plugins/general.py b/sos/plugins/general.py index <HASH>..<HASH> 100644 --- a/sos/plugins/general.py +++ b/sos/plugins/general.py @@ -22,7 +22,6 @@ class General(Plugin): def setup(self): self.add_copy_specs([ - "/etc/init", # upstart "/etc/event.d", ...
[general] remove duplicate /etc/init collection Already handled by the upstart plugin. Related: #<I>.
py
diff --git a/scoop/futures.py b/scoop/futures.py index <HASH>..<HASH> 100644 --- a/scoop/futures.py +++ b/scoop/futures.py @@ -320,9 +320,8 @@ def wait(fs, timeout=-1, return_when=ALL_COMPLETED): :param fs: The sequence of Futures (possibly created by another instance) to wait upon. - :param timeout:...
Changed the documentation to reflect the new changes in the timeout
py
diff --git a/jax/random.py b/jax/random.py index <HASH>..<HASH> 100644 --- a/jax/random.py +++ b/jax/random.py @@ -759,7 +759,8 @@ def gumbel(key, shape=(), dtype=onp.float64): @partial(jit, static_argnums=(1, 2)) def _gumbel(key, shape, dtype): _check_shape("gumbel", shape) - return -np.log(-np.log(uniform(key, ...
Avoid generating non-finite values from gumbel and laplace In the case of gumbel, we take the log(-log(x)), as such we would not want to let x be 0 or 1 as we would get a non-finite number. In the case of laplace, we take the log1p(-abs(x)), as such we would not want to let x be -1 or 1 as we would get a non-finite n...
py
diff --git a/trace/setup.py b/trace/setup.py index <HASH>..<HASH> 100644 --- a/trace/setup.py +++ b/trace/setup.py @@ -15,7 +15,7 @@ install_requires = [ setup( name='google-cloud-trace', - version='0.15.4', + version='0.15.5', author='Google Inc', author_email='googleapis-packages@google.com', ...
Fix namespace package declaration for trace. (#<I>)
py
diff --git a/spyder/widgets/collectionseditor.py b/spyder/widgets/collectionseditor.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/collectionseditor.py +++ b/spyder/widgets/collectionseditor.py @@ -45,7 +45,7 @@ from spyder_kernels.utils.nsview import ( # Local imports from spyder.api.config.mixins import Spyde...
Widgets: Avoid a segfault when removing collection items in our tests
py
diff --git a/lib/svtplay_dl/fetcher/rtmp.py b/lib/svtplay_dl/fetcher/rtmp.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/fetcher/rtmp.py +++ b/lib/svtplay_dl/fetcher/rtmp.py @@ -22,9 +22,7 @@ class RTMP(VideoRetriever): if self.options.resume: args.append("-e") - file_d = output(self...
io.IOBase does not have read, file_d is not used
py
diff --git a/salt/client/mixins.py b/salt/client/mixins.py index <HASH>..<HASH> 100644 --- a/salt/client/mixins.py +++ b/salt/client/mixins.py @@ -332,6 +332,10 @@ class AsyncClientMixin(object): ''' Print all of the events with the prefix 'tag' ''' + # some suffixes we don't want to p...
Add a blacklist of suffixes for the client mixin to print out
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,8 @@ python_ver = sys.version_info install_requires = [] -if python_ver.major == 2 and python_ver.minor < 7: +# Do not use the attribute names as they are not available in Python 2.6. +if python_ver[0] == 2 and py...
fixeds setup.py for Python <I> installs (#<I>)
py
diff --git a/anyconfig/cli.py b/anyconfig/cli.py index <HASH>..<HASH> 100644 --- a/anyconfig/cli.py +++ b/anyconfig/cli.py @@ -218,7 +218,10 @@ def _parse_args(argv): args = parser.parse_args(argv) LOGGER.setLevel(to_log_level(args.loglevel)) - if not args.inputs: + if args.inputs: + if '-' in ...
enhancement: [cli] add support to load data from stdin
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -124,5 +124,15 @@ setup( 'install': install, }, keywords=['sphinx', 'docstring', 'parser'], - tests_require=['unittest2'] + tests_require=['unittest2'], + classifiers=[ + 'Environment :: Cons...
Add classifiers to setup.py.
py
diff --git a/tornado/testing.py b/tornado/testing.py index <HASH>..<HASH> 100644 --- a/tornado/testing.py +++ b/tornado/testing.py @@ -21,6 +21,7 @@ information. from __future__ import absolute_import, division, print_function, with_statement try: + from tornado import gen from tornado.httpclient import Asy...
Protect the tornado.gen import in testing.py for app engine.
py
diff --git a/cassandra/connection.py b/cassandra/connection.py index <HASH>..<HASH> 100644 --- a/cassandra/connection.py +++ b/cassandra/connection.py @@ -897,6 +897,10 @@ class Connection(object): for args in self.sockopts: self._socket.setsockopt(*args) + def _enable_compression(sel...
make sure to enable compression before sending the auth creds
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,11 +20,7 @@ PDF parser that can be used for other purposes instead of text analysis.''', url='http://www.unixuser.org/~euske/python/pdfminer/index.html', packages=[ 'pdfminer', - 'pdfminer.cmap', ], ...
pdfminer.cmap python package does not exists
py
diff --git a/satpy/demo/seviri_hrit.py b/satpy/demo/seviri_hrit.py index <HASH>..<HASH> 100644 --- a/satpy/demo/seviri_hrit.py +++ b/satpy/demo/seviri_hrit.py @@ -59,15 +59,21 @@ def generate_subset_of_filenames(subset=None, base_dir=""): subset = _create_full_set() pattern = os.path.join(base_dir, FILENA...
Refactor for lower indentation level
py
diff --git a/pyowm/webapi25/weather.py b/pyowm/webapi25/weather.py index <HASH>..<HASH> 100644 --- a/pyowm/webapi25/weather.py +++ b/pyowm/webapi25/weather.py @@ -527,7 +527,7 @@ def weather_from_dictionary(d): # -- weather status info if 'weather' in d: status = d['weather'][0]['main'] - deta...
Remove lowercasing as in some languages nouns are uppercased
py
diff --git a/aiogram/types/user.py b/aiogram/types/user.py index <HASH>..<HASH> 100644 --- a/aiogram/types/user.py +++ b/aiogram/types/user.py @@ -55,7 +55,7 @@ class User(Deserializable): return self.full_name @property - def locale(self) -> babel.core.Locale or None: + def locale(self) -> 'babel...
Fix user model. (Babel is not required)
py
diff --git a/cookiecutter/log.py b/cookiecutter/log.py index <HASH>..<HASH> 100644 --- a/cookiecutter/log.py +++ b/cookiecutter/log.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- import logging +import sys LOG_LEVELS = { 'DEBUG': logging.DEBUG, @@ -55,7 +56,7 @@ def create_logger(template, stream_level='DEBUG',...
Set stream to stdout
py
diff --git a/pycbc/scheme.py b/pycbc/scheme.py index <HASH>..<HASH> 100644 --- a/pycbc/scheme.py +++ b/pycbc/scheme.py @@ -27,6 +27,7 @@ This modules provides python contexts that set the default behavior for PyCBC objects. """ import pycbc +from decorator import decorator class _SchemeManager(object): @@ -145...
example of new schemed function with zeros
py
diff --git a/translate.py b/translate.py index <HASH>..<HASH> 100644 --- a/translate.py +++ b/translate.py @@ -35,7 +35,10 @@ class Translator: def _get_translation_from_google(self, source): json5 = self._get_json5_from_google(source) - return json.loads(json5)['sentences'][0]['trans'] + ...
Solve case of multiple sentences When the paragrapph have punctuation signs, google return a array of sentences in the json.
py
diff --git a/luigi/configuration/toml_parser.py b/luigi/configuration/toml_parser.py index <HASH>..<HASH> 100644 --- a/luigi/configuration/toml_parser.py +++ b/luigi/configuration/toml_parser.py @@ -15,6 +15,7 @@ # limitations under the License. # import os.path +from configparser import ConfigParser try: im...
Alternate (probably more correct) fix for #<I> (supercedes #<I>) (#<I>)
py
diff --git a/cli/libreant_users.py b/cli/libreant_users.py index <HASH>..<HASH> 100644 --- a/cli/libreant_users.py +++ b/cli/libreant_users.py @@ -13,6 +13,11 @@ usersDB = None conf = dict() +def die(msg, exit_code=1): + click.secho('ERROR: ' + msg, err=True, fg='red') + exit(exit_code) + + @click.g...
libreant-users complains about in-memory db if you really want to use in-memory db, you should explicitly say --users-db sqlite:///:memory:
py
diff --git a/tornado/iostream.py b/tornado/iostream.py index <HASH>..<HASH> 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -554,7 +554,7 @@ class BaseIOStream(object): except UnsatisfiableReadError as e: gen_log.info("Unsatisfiable read, closing connection: %s" % e) sel...
fix: iostream exception alias
py
diff --git a/cwltool/provenance.py b/cwltool/provenance.py index <HASH>..<HASH> 100644 --- a/cwltool/provenance.py +++ b/cwltool/provenance.py @@ -544,7 +544,7 @@ class CreateProvProfile(): return self.document.entity(uuid.uuid4().urn, { provM.PROV_VALUE: value }) - elif isinstanc...
Ensure strings are registered, not looped over
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name="razorpay", - version="0.1.3", + version="0.2.0", description="Razorpay Python Client", url="https://github.com/razorpay/razorpay-python", auth...
bumped version for razorpay python client
py
diff --git a/tests/test_client.py b/tests/test_client.py index <HASH>..<HASH> 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -213,7 +213,7 @@ def test_read_attribute(tango_test, readable_attribute): def test_write_scalar_attribute(tango_test, writable_scalar_attribute): "Check that writable scala...
Fix asyncio client tests
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,22 @@ setup(name='git-repo', version='1.4', description='Tool for managing remote repositories from your git CLI!', classifiers=[ - 'Development Status :: 2 - Pre-Alpha', + # ...
Updated classifiers in setup.py
py
diff --git a/nxviz/plots.py b/nxviz/plots.py index <HASH>..<HASH> 100644 --- a/nxviz/plots.py +++ b/nxviz/plots.py @@ -145,8 +145,8 @@ class BasePlot(object): # set group properties self.group_label_position = group_label_position + self.groups = [] if group_label_position: - ...
Pushed self.groups out so that we guarantee that it's present.
py
diff --git a/samples/api-python-client-doc/main.py b/samples/api-python-client-doc/main.py index <HASH>..<HASH> 100755 --- a/samples/api-python-client-doc/main.py +++ b/samples/api-python-client-doc/main.py @@ -68,6 +68,7 @@ class MainHandler(webapp.RequestHandler): <li><a href='/customsearch/v1'>customsearch</a...
Added prediction to client doc sample
py
diff --git a/hebel/layers/linear_regression_layer.py b/hebel/layers/linear_regression_layer.py index <HASH>..<HASH> 100644 --- a/hebel/layers/linear_regression_layer.py +++ b/hebel/layers/linear_regression_layer.py @@ -96,7 +96,7 @@ class LinearRegressionLayer(SoftmaxLayer): self.W = gpuarray.empty((n_in, ...
Fix crash in LinearRegressionLayer with default weight_scale
py
diff --git a/cloudvolume/cloudvolume.py b/cloudvolume/cloudvolume.py index <HASH>..<HASH> 100644 --- a/cloudvolume/cloudvolume.py +++ b/cloudvolume/cloudvolume.py @@ -854,8 +854,8 @@ class CloudVolume(object): fileinfo['content'], self.encoding, multichannel_shape(bbox), self.dtype ) except E...
fix: file read errors were crashing incorrectly They should have been printing red output and rethrowing, instead they referenced an experimental function that has since been removed.
py
diff --git a/modelx/core/cells.py b/modelx/core/cells.py index <HASH>..<HASH> 100644 --- a/modelx/core/cells.py +++ b/modelx/core/cells.py @@ -330,6 +330,7 @@ class Cells(Interface, Mapping, Callable, Sized): # ---------------------------------------------------------------------- # Dependency def node(s...
DOC: Add docstring to Cells.node
py
diff --git a/test.py b/test.py index <HASH>..<HASH> 100644 --- a/test.py +++ b/test.py @@ -150,6 +150,27 @@ class TestRequestsPost(unittest.TestCase): def test_cached_post_response_text(self): self.assertEqual(self.unmolested_response.text, self.cached_response.text) +class TestRequestsHTTPS(unittest.Te...
Add failing test for HTTPS requests to shame me into fixing this bug
py
diff --git a/python/test/test_series.py b/python/test/test_series.py index <HASH>..<HASH> 100644 --- a/python/test/test_series.py +++ b/python/test/test_series.py @@ -17,6 +17,11 @@ class TestSeriesConversions(PySparkTestCase): assert(mat.nrows == 2) assert(mat.ncols == 4) + # check a basic o...
Add additional test for converting series to matrix
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ version = '1.0.6' install_requires = [ "djangorestframework>=3.7.7", "django>=2.2.1", - "PyJWT>=1.6.1", + "PyJWT==1.6.1", "requests>=2.20.0", "cryptography>=2.3", ]
Lock pyjwt version to <I>
py
diff --git a/start.py b/start.py index <HASH>..<HASH> 100755 --- a/start.py +++ b/start.py @@ -16,7 +16,7 @@ import time sys.path.append('./test') import startservers -if not startservers.start(race_detection=False): +if not startservers.start(race_detection=False, fakeclock=None): sys.exit(1) try: os.wa...
Fix start.py/docker-compose (#<I>) fakeclock became a mandatory parameter in #<I>
py
diff --git a/src/pyiso/pyiso.py b/src/pyiso/pyiso.py index <HASH>..<HASH> 100644 --- a/src/pyiso/pyiso.py +++ b/src/pyiso/pyiso.py @@ -2859,13 +2859,14 @@ class PyIso(object): continue matches_boot_catalog = self.eltorito_boot_catalog is not None and self.eltorito_boot_catalog.di...
Make sure not to try to write symlinks out. They might have random extents, but they have no data, so just ignore them while writing.
py
diff --git a/validator/testcases/javascript/actions.py b/validator/testcases/javascript/actions.py index <HASH>..<HASH> 100644 --- a/validator/testcases/javascript/actions.py +++ b/validator/testcases/javascript/actions.py @@ -251,7 +251,7 @@ def _new(traverser, node): return js_traverser.JSWrapper(traverser=t...
More stable handling of 'new' operator.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ setup( py_modules=["hypercorn"], install_requires=INSTALL_REQUIRES, extras_require={ - "h3": ["aioquic == 0.5.0"], + "h3": ["aioquic >= 0.6, < 1.0"], "tests": TESTS_REQUIRE,...
Loosen the aioquic requirement This allows more rapid development of the interaction between aioquic and Hypercorn at the expense of likely bugs. This is ok though as HTTP/3 is not production ready yet and is an optional extra.
py
diff --git a/gpiozero/boards.py b/gpiozero/boards.py index <HASH>..<HASH> 100644 --- a/gpiozero/boards.py +++ b/gpiozero/boards.py @@ -243,6 +243,8 @@ class LEDCollection(CompositeOutputDevice): ) for name, pin_or_collection in kwargs.items() }) + if len(self) =...
Check pins have been provided to LEDCollection and all descendents, close #<I>
py
diff --git a/httpretty/core.py b/httpretty/core.py index <HASH>..<HASH> 100644 --- a/httpretty/core.py +++ b/httpretty/core.py @@ -843,6 +843,8 @@ class httpretty(HttpBaseClass): @classmethod def reset(cls): + global POTENTIAL_HTTP_PORTS + POTENTIAL_HTTP_PORTS = set([80, 443]) cls._en...
Reset POTENTIAL_HTTP_PORTS with reset HTTPretty.reset removes all the HTTP mocks that are put in places. There is therefore no reason to keep around potential http ports that are not in the current list of mocks. Therefore we should reset that set as well when we reset the mocks.
py
diff --git a/satpy/writers/awips_tiled.py b/satpy/writers/awips_tiled.py index <HASH>..<HASH> 100644 --- a/satpy/writers/awips_tiled.py +++ b/satpy/writers/awips_tiled.py @@ -1060,7 +1060,7 @@ class AWIPSNetCDFTemplate(NetCDFTemplate): return new_ds def _add_sector_id_global(self, new_ds, sector_id): - ...
Use add_sectorid_global rather than apply so that the key in the yaml matches the code.
py
diff --git a/private_storage/models.py b/private_storage/models.py index <HASH>..<HASH> 100644 --- a/private_storage/models.py +++ b/private_storage/models.py @@ -15,6 +15,9 @@ class PrivateFile(object): self.relative_name = relative_name self.parent_object = parent_object + def __repr__(self): +...
Add PrivateFile.__repr__ for sentry debugging
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,10 +20,10 @@ setup( description='Automatically response to any tweets mentioning you', - url='https://github.com/EastAgile/twitterbot', + url='https://github.com/invinst/ResponseBot', - author='East Agi...
[r] update repo, author, email in setup.py
py
diff --git a/xmlrpc2/serializer.py b/xmlrpc2/serializer.py index <HASH>..<HASH> 100644 --- a/xmlrpc2/serializer.py +++ b/xmlrpc2/serializer.py @@ -2,6 +2,7 @@ from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals +import collections import base64 import dat...
add iterables and mappings to xml serialization
py
diff --git a/armstrong/core/arm_wells/tests/querysets.py b/armstrong/core/arm_wells/tests/querysets.py index <HASH>..<HASH> 100644 --- a/armstrong/core/arm_wells/tests/querysets.py +++ b/armstrong/core/arm_wells/tests/querysets.py @@ -136,7 +136,7 @@ class GenericForeignKeyQuerySetTestCase(TestCase): for i in ...
fix the test case to actually verify all the items in the array
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -69,5 +69,7 @@ setup( 'pyquery', 'pygments', 'requests', + 'cachelib', + 'appdirs' ] + extra_dependencies(), )
Add cachelib and appdirs to setup.py
py
diff --git a/distributions.py b/distributions.py index <HASH>..<HASH> 100644 --- a/distributions.py +++ b/distributions.py @@ -533,7 +533,7 @@ class Gaussian(_GaussianBase, GibbsSampling, MeanField, MeanFieldSVI, Collapsed, self.natural_hypparam + self._get_statistics(data,D))) # NOTE: nex...
fix a None bug in Gaussian.empirical_bayes
py
diff --git a/crabpy/gateway/crab.py b/crabpy/gateway/crab.py index <HASH>..<HASH> 100644 --- a/crabpy/gateway/crab.py +++ b/crabpy/gateway/crab.py @@ -369,7 +369,7 @@ class CrabGateway(object): except AttributeError: gewest_id = gewest - if gewest_id <> 2: + if gewest_id != 2: ...
Better py3 compatibility. Refs #<I>
py
diff --git a/test/test_mini.py b/test/test_mini.py index <HASH>..<HASH> 100644 --- a/test/test_mini.py +++ b/test/test_mini.py @@ -7,13 +7,14 @@ Test most basic GNTP functions using our mini growl function import unittest import logging +import os logging.basicConfig(level=logging.WARNING) import gntp.config imp...
Make icon path more portable for image test
py
diff --git a/foundations/globals/constants.py b/foundations/globals/constants.py index <HASH>..<HASH> 100644 --- a/foundations/globals/constants.py +++ b/foundations/globals/constants.py @@ -46,10 +46,10 @@ class Constants(): """Package major version: '**2**' ( String )""" minorVersion = "0" """Package minor vers...
Raise package release version number to "<I>".
py
diff --git a/py/_path/local.py b/py/_path/local.py index <HASH>..<HASH> 100644 --- a/py/_path/local.py +++ b/py/_path/local.py @@ -633,16 +633,7 @@ class LocalPath(FSBase): (which we created ourself). """ import tempfile - tries = 10 - for i in range(tries): - dna...
use tempdir.mkdtmp instead of mktmp + repeated tries for making tmpdirs --HG-- branch : trunk
py
diff --git a/assess_model_migration.py b/assess_model_migration.py index <HASH>..<HASH> 100755 --- a/assess_model_migration.py +++ b/assess_model_migration.py @@ -38,6 +38,7 @@ log = logging.getLogger("assess_model_migration") def assess_model_migration(bs1, bs2, args): with bs1.booted_context(args.upload_tools):...
Enable migration flag on target controller too.
py
diff --git a/vr/common/models.py b/vr/common/models.py index <HASH>..<HASH> 100644 --- a/vr/common/models.py +++ b/vr/common/models.py @@ -38,10 +38,13 @@ from vr.common.utils import utcfromtimestamp, parse_redis_url log = logging.getLogger(__name__) +SUPERVISOR_RPC_TIMEOUT_SECS = 10 +SUPERVISOR_RPC_N_RETRIES = 2 ...
Relax supervisor RPC timeouts and retries
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -201,7 +201,7 @@ epub_exclude_files = ['search.html'] # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { - 'python': ('https://docs.python.org/{0[0]}'....
a small edition on sphinx-doc
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,8 +19,8 @@ # import os import sys -sys.path.insert(0, os.path.abspath('../')) sys.path.insert(0, os.path.abspath('.')) +sys.path.insert(0, os.path.abspath('../')) # -- General configuration -------...
transfering over plumitas docs style
py
diff --git a/tools/python_test_v4.py b/tools/python_test_v4.py index <HASH>..<HASH> 100644 --- a/tools/python_test_v4.py +++ b/tools/python_test_v4.py @@ -822,7 +822,8 @@ assert len(discussion.attributes["notes"]) == 1 snippet.file_name = "bar.py" snippet.save() snippet = admin_project.snippets.get(snippet.id) -asse...
test: disable test until Gitlab <I>
py
diff --git a/pyecharts/template.py b/pyecharts/template.py index <HASH>..<HASH> 100644 --- a/pyecharts/template.py +++ b/pyecharts/template.py @@ -34,8 +34,10 @@ def freeze_js(html_content): js_content = "" for src in src_matches: + src = src.strip() + src = src.split('/') ...
:bug: make html path as os independent #<I>
py
diff --git a/Test/CLI_test.py b/Test/CLI_test.py index <HASH>..<HASH> 100644 --- a/Test/CLI_test.py +++ b/Test/CLI_test.py @@ -12,7 +12,7 @@ import argparse class CLITest(unittest.TestCase): def setUp(self): # create a directory to use in testing the cp command - self.client = Algorithmia.client('simdylfCeXZ8/M...
Remove test key (#<I>)
py
diff --git a/zipline/gens/tradesimulation.py b/zipline/gens/tradesimulation.py index <HASH>..<HASH> 100644 --- a/zipline/gens/tradesimulation.py +++ b/zipline/gens/tradesimulation.py @@ -70,11 +70,6 @@ class AlgorithmSimulator(object): record.extra['algo_dt'] = self.simulation_dt self.processo...
MAINT: Remove unsued perf_key property on simulation object. The perf_key property is no longer referenced.
py
diff --git a/version.py b/version.py index <HASH>..<HASH> 100644 --- a/version.py +++ b/version.py @@ -4,7 +4,7 @@ This is the version file for the map project. More information about map is available at https://github.com/THLO/map. """ -__version__ = "1.0.0" +__version__ = "1.1.0" __version_text__ = 'Copyright ...
The version number has been bumped to <I>.
py
diff --git a/src/feat/database/tools.py b/src/feat/database/tools.py index <HASH>..<HASH> 100644 --- a/src/feat/database/tools.py +++ b/src/feat/database/tools.py @@ -301,7 +301,7 @@ def standalone(script, options=[]): metavar="USER", default=c.db.username) parser.add_option('--dbpas...
not sure why we use METAVAR, but fix it for password
py
diff --git a/napalm/__init__.py b/napalm/__init__.py index <HASH>..<HASH> 100644 --- a/napalm/__init__.py +++ b/napalm/__init__.py @@ -16,7 +16,7 @@ from eos import EOSDriver from iosxr import IOSXRDriver from junos import JunOSDriver from fortios import FortiOSDriver -#from ibm import IBMDriver +from ibm import IBM...
Fixed the backend library for IBMDriver
py
diff --git a/telethon/network/connection/connection.py b/telethon/network/connection/connection.py index <HASH>..<HASH> 100644 --- a/telethon/network/connection/connection.py +++ b/telethon/network/connection/connection.py @@ -74,11 +74,11 @@ class Connection(abc.ABC): # to be backwards compatible with PyS...
Fix protocol typing for python-socks.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -82,7 +82,7 @@ if __name__ == '__main__': 'climlab.solar': ['orbit91'], 'climlab.radiation.cam3': [ os.path.join('data','abs_ems_factors_fastvx.c030508.nc'), - ...
Moving toward a pure numpy.distutils.core.setup experience.
py
diff --git a/trezorlib/qt/pinmatrix.py b/trezorlib/qt/pinmatrix.py index <HASH>..<HASH> 100644 --- a/trezorlib/qt/pinmatrix.py +++ b/trezorlib/qt/pinmatrix.py @@ -30,8 +30,7 @@ try: QHBoxLayout, ) from PyQt5.QtGui import QRegExpValidator - from PyQt5.QtCore import QRegExp, Qt - from PyQt5.Qt im...
qt: don't import PyQt5.Qt
py
diff --git a/csv_ical/convert.py b/csv_ical/convert.py index <HASH>..<HASH> 100644 --- a/csv_ical/convert.py +++ b/csv_ical/convert.py @@ -76,7 +76,7 @@ class Convert(): row = [ event['SUMMARY'], event['DTSTART'].dt, - event['DTSTART'].dt, + e...
Fix to get DTEND instead of DTSTART
py
diff --git a/flat/comm.py b/flat/comm.py index <HASH>..<HASH> 100644 --- a/flat/comm.py +++ b/flat/comm.py @@ -7,7 +7,7 @@ import json import requests from flat import VERSION -REQUIREFOLIADOCSERVE = '0.7' +REQUIREFOLIADOCSERVE = '0.7.2' def checkversion(version): """Checks foliadocserve version, returns 1 ...
require at least foliadocserve <I>
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -68,9 +68,9 @@ author = 'Ilan Steemers' # built documents. # # The short X.Y version. -version = '0.2.0' +version = '0.3' # The full version, including alpha/beta/rc tags. -release = '0.2.0' +release = '0.3...
Upped docs to <I>
py
diff --git a/py/src/ai/h2o/sparkling/ml/params/H2OCommonParams.py b/py/src/ai/h2o/sparkling/ml/params/H2OCommonParams.py index <HASH>..<HASH> 100644 --- a/py/src/ai/h2o/sparkling/ml/params/H2OCommonParams.py +++ b/py/src/ai/h2o/sparkling/ml/params/H2OCommonParams.py @@ -94,26 +94,21 @@ class H2OCommonParams(H2OMOJOAlgo...
[SW-<I>] Remove extra asserts for types already covered by type converters (#<I>)
py
diff --git a/tests/test_more.py b/tests/test_more.py index <HASH>..<HASH> 100644 --- a/tests/test_more.py +++ b/tests/test_more.py @@ -2670,6 +2670,19 @@ class IsliceExtendedTests(TestCase): third_slice = mi.islice_extended(second_slice)[::2] self.assertEqual(list(third_slice), ['10', '12', '14', '16'...
Improve tests for islice_extended
py
diff --git a/src/ipcalc.py b/src/ipcalc.py index <HASH>..<HASH> 100644 --- a/src/ipcalc.py +++ b/src/ipcalc.py @@ -285,7 +285,7 @@ class IP(object): for h in hx: if len(h) < 4: h = '%04x' % int(h, 16) - if not 0 < int(h, 16) < 0xffff: + if...
Fixing hextet/octet value checks IPv6 address/mask hextets can contain 0x0 and 0xffff IPv4 address/mask octets can contain 0 and <I>
py
diff --git a/graphene_django/rest_framework/types.py b/graphene_django/rest_framework/types.py index <HASH>..<HASH> 100644 --- a/graphene_django/rest_framework/types.py +++ b/graphene_django/rest_framework/types.py @@ -3,8 +3,8 @@ from graphene.types.unmountedtype import UnmountedType class ErrorType(graphene.Obje...
Improve ErrorType Marks some fields as required and non null, it also prevents to do useless checks on the frontend if using a typed language.
py
diff --git a/estnltk/layer/ambiguous_span.py b/estnltk/layer/ambiguous_span.py index <HASH>..<HASH> 100644 --- a/estnltk/layer/ambiguous_span.py +++ b/estnltk/layer/ambiguous_span.py @@ -22,6 +22,8 @@ class AmbiguousSpan(collections.Sequence): # placeholder for dependant layer self._base = None # typ...
added text_object attribute to AmbiguousSpan
py
diff --git a/autopep8.py b/autopep8.py index <HASH>..<HASH> 100755 --- a/autopep8.py +++ b/autopep8.py @@ -345,11 +345,11 @@ class FixPEP8(object): blank_count = 0 for line in source: line = line.rstrip() - if re.match("^$", line): - blank_count += 1 - ...
Simplify logic in fix_w<I>()
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ setup( ], install_requires=[ 'Django>=1.8', - 'icalendar>=4.0', + 'icalendar>=4.0.3', ], tests_require=[ 'django-recurrence',
version peg icalendar to include category fix
py
diff --git a/matplotlib_hep/__init__.py b/matplotlib_hep/__init__.py index <HASH>..<HASH> 100644 --- a/matplotlib_hep/__init__.py +++ b/matplotlib_hep/__init__.py @@ -9,7 +9,7 @@ __all__ = ['histpoints', 'calc_nbins'] def calc_nbins(x, maximum=150): n = (max(x) - min(x)) / (2 * len(x)**(-1/3) * (np.percentile(...
Fix on Python 3 and fix typos
py
diff --git a/twython/endpoints.py b/twython/endpoints.py index <HASH>..<HASH> 100644 --- a/twython/endpoints.py +++ b/twython/endpoints.py @@ -135,7 +135,7 @@ class EndpointsMixin(object): to the 'update_status' method using the 'media_ids' param. Docs: - https://dev.twitter.com/rest/public/u...
Corrected the docs URL for uploading media, fixes #<I>
py
diff --git a/setuptools/distutils_patch.py b/setuptools/distutils_patch.py index <HASH>..<HASH> 100644 --- a/setuptools/distutils_patch.py +++ b/setuptools/distutils_patch.py @@ -7,9 +7,23 @@ for more motivation. import sys import importlib +import contextlib from os.path import dirname -sys.path.insert(0, dir...
Update distutils patch to monkeypatch all paths from sys.path to ensure that distutils is never imported except from the same path as setuptools. Assert that 'distutils' is not already in sys.modules.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ if __name__ == '__main__': requires = f.read().strip().splitlines() setup( name='fuzzfetch', - version='0.4.2', + version='0.5.0', packages=['fuzzfetch'], ins...
Release <I> - add support for ccov builds. - fix setup.py develop support (breaking fetch.py script usage)
py
diff --git a/models/rasmachine/rasmachine.py b/models/rasmachine/rasmachine.py index <HASH>..<HASH> 100644 --- a/models/rasmachine/rasmachine.py +++ b/models/rasmachine/rasmachine.py @@ -259,7 +259,7 @@ if __name__ == '__main__': stats = {} print 'Preassembling model' print time.strftime('%c') - model...
Add filters to first round of RAS Machine assembly
py
diff --git a/keyring/backend.py b/keyring/backend.py index <HASH>..<HASH> 100644 --- a/keyring/backend.py +++ b/keyring/backend.py @@ -467,25 +467,25 @@ class CryptedFileKeyring(BasicFileKeyring): self._check_file() and self._unlock() or self._init_file() return self.keyring_key - def _init_file(...
Extracted _get_new_password method
py
diff --git a/src/kba/pipeline/_s3_storage.py b/src/kba/pipeline/_s3_storage.py index <HASH>..<HASH> 100644 --- a/src/kba/pipeline/_s3_storage.py +++ b/src/kba/pipeline/_s3_storage.py @@ -49,6 +49,10 @@ def _retry(func): return func(self, *args, **kwargs) break + except OSE...
Don't keep retrying on OSError If the pipeline is out of file handles we need to fail hard. Before this we retried on a task for the configured number of times then marked it as permanently failed and moved onto the next task. Each new task would eventually fail because we never did anything to fix the underlying pr...
py
diff --git a/mockredis/client.py b/mockredis/client.py index <HASH>..<HASH> 100644 --- a/mockredis/client.py +++ b/mockredis/client.py @@ -870,9 +870,7 @@ class MockRedis(object): return 0 result = str(value) in redis_set - if not result: - return 0 - return 1 + return 1 if result els...
minor changes made in the if statement
py
diff --git a/hedgehog/client/client_backend.py b/hedgehog/client/client_backend.py index <HASH>..<HASH> 100644 --- a/hedgehog/client/client_backend.py +++ b/hedgehog/client/client_backend.py @@ -169,8 +169,8 @@ class ClientBackend(object): def target(*args, **kwargs): with self.client_handle: - ...
fix possible race condition where spawning a daemon thread and then closing the current (only) handle makes the backend see the new thread as non-daemon and not terminate
py
diff --git a/grimoire_elk/enriched/jira.py b/grimoire_elk/enriched/jira.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/enriched/jira.py +++ b/grimoire_elk/enriched/jira.py @@ -234,6 +234,10 @@ class JiraEnrich(Enrich): eitem['time_to_last_update_days'] = None eitem['url'] = None + eitem['u...
[enrich] Add updated field to Jira items This code includes the information about when a Jira issue was updated. This change is needed to calculate time intervals via painless scripting.
py
diff --git a/openpnm/algorithms/GenericTransport.py b/openpnm/algorithms/GenericTransport.py index <HASH>..<HASH> 100644 --- a/openpnm/algorithms/GenericTransport.py +++ b/openpnm/algorithms/GenericTransport.py @@ -566,9 +566,12 @@ class GenericTransport(GenericAlgorithm): # SciPy if self.settings['...
Bugfix, strange behaviour of find_spec, replaced w/ a try/except block
py
diff --git a/pytorch_transformers/modeling_dilbert.py b/pytorch_transformers/modeling_dilbert.py index <HASH>..<HASH> 100644 --- a/pytorch_transformers/modeling_dilbert.py +++ b/pytorch_transformers/modeling_dilbert.py @@ -61,6 +61,8 @@ class DilBertConfig(PretrainedConfig): activation='gelu', ...
fix: add qa_dropout and seq_classif_dropout
py