diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/GPy/util/mocap.py b/GPy/util/mocap.py index <HASH>..<HASH> 100644 --- a/GPy/util/mocap.py +++ b/GPy/util/mocap.py @@ -2,7 +2,6 @@ import os import numpy as np import math from GPy.util import datasets as dat -import urllib2 class vertex: def __init__(self, name, id, parents=[], children=[], meta...
Removed import urllib2 since it wasn't being used
py
diff --git a/ads/core.py b/ads/core.py index <HASH>..<HASH> 100644 --- a/ads/core.py +++ b/ads/core.py @@ -29,10 +29,17 @@ class Article(object): aff = ["Unknown"] author = ["Anonymous"] citation_count = 0 + reference_count = 0 url = None def __init__(self, **kwargs): for key, val...
Removed [citations] as an attribute for Article, introduced article.reference_count
py
diff --git a/openquake/calculators/extract.py b/openquake/calculators/extract.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/extract.py +++ b/openquake/calculators/extract.py @@ -1012,6 +1012,7 @@ def extract_disagg(dstore, what): if not allnames: raise KeyError('No data for ' + what) eli...
Fixed make_figure_disagg [skip CI] Former-commit-id: b<I>f<I>c5c4a<I>d<I>ede<I>cb<I>fb<I>d9b7
py
diff --git a/run_tests.py b/run_tests.py index <HASH>..<HASH> 100755 --- a/run_tests.py +++ b/run_tests.py @@ -52,7 +52,8 @@ def RunTests(debug_mode=False): # related to securityd parsing, yet the tests fail, but not if run # independently, this has something to do with the test suite. blacklisted_casses = [ -...
Fix for Travis CI test configuration.
py
diff --git a/tornado/curl_httpclient.py b/tornado/curl_httpclient.py index <HASH>..<HASH> 100644 --- a/tornado/curl_httpclient.py +++ b/tornado/curl_httpclient.py @@ -319,17 +319,7 @@ class CurlAsyncHTTPClient(AsyncHTTPClient): self.io_loop.add_callback(request.streaming_callback, chunk) else:...
CurlAsyncHTTPClient: remove ubuntu-<I> python3 fix No need to utf8() what is passed to WRITEFUNCTION, it will always be bytes on python3 for upstream pycurl on python3. The ubuntu-<I> variant is long gone.
py
diff --git a/tests/contrib/test_securecookie.py b/tests/contrib/test_securecookie.py index <HASH>..<HASH> 100644 --- a/tests/contrib/test_securecookie.py +++ b/tests/contrib/test_securecookie.py @@ -1,3 +1,4 @@ +from werkzeug import Request, Response, parse_cookie from werkzeug.contrib.securecookie import SecureCookie...
Added another secure cookie test, this time for the wrapper integration.
py
diff --git a/tests/calculation_tests.py b/tests/calculation_tests.py index <HASH>..<HASH> 100644 --- a/tests/calculation_tests.py +++ b/tests/calculation_tests.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import unittest from pycpfcnpj import calculation as calc
another try to make python 3 compatible
py
diff --git a/valid_vietnamese.py b/valid_vietnamese.py index <HASH>..<HASH> 100644 --- a/valid_vietnamese.py +++ b/valid_vietnamese.py @@ -105,7 +105,11 @@ def is_valid_combination(components, final_form=True): # break # if not good_vowel: # return False - return mark.remov...
Improve vowel checking in is_valid_vietnamese() If the last consonant exists then the vowel must be a closed vowel else it can be any of the stripped vowels.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ """trakt.py setup script (powered by pbr).""" +from __future__ import absolute_import, division, print_function + from setuptools import setup import sys
Added missing `__future__` imports in [setup.py]
py
diff --git a/examples/add_model.py b/examples/add_model.py index <HASH>..<HASH> 100644 --- a/examples/add_model.py +++ b/examples/add_model.py @@ -11,6 +11,7 @@ from juju import utils from juju.controller import Controller import asyncio from logging import getLogger +import uuid LOG = getLogger(__name__) @@ -2...
Create a new model for each test run of examples/add_model.py.
py
diff --git a/djangoql/admin.py b/djangoql/admin.py index <HASH>..<HASH> 100644 --- a/djangoql/admin.py +++ b/djangoql/admin.py @@ -40,13 +40,16 @@ class DjangoQLSearchMixin(object): # enable search mode toggle return self.search_fields != DjangoQLSearchMixin.search_fields + def djangoql_search_en...
extract method djangoql_search_enabled
py
diff --git a/src/sos/hosts.py b/src/sos/hosts.py index <HASH>..<HASH> 100755 --- a/src/sos/hosts.py +++ b/src/sos/hosts.py @@ -376,7 +376,7 @@ class RemoteHost(object): # The following is not a robust solution to #1300 but I cannot think of a better method. env_vars = ' '.join([ f'{x}={os...
Exclude more environment variables passed to remote hosts #<I>
py
diff --git a/ipyrad/assemble/refmap.py b/ipyrad/assemble/refmap.py index <HASH>..<HASH> 100644 --- a/ipyrad/assemble/refmap.py +++ b/ipyrad/assemble/refmap.py @@ -702,10 +702,12 @@ def bam_region_to_fasta(data, sample, proc1, chrom, region_start, region_end): ref += line ## parse sam to fasta. Save ref ...
Set a size= for reference sequence to sort it to the top of the chunk prior to muscle aligning.
py
diff --git a/nipap/nipap/backend.py b/nipap/nipap/backend.py index <HASH>..<HASH> 100644 --- a/nipap/nipap/backend.py +++ b/nipap/nipap/backend.py @@ -46,6 +46,7 @@ ^^^^^^^^^^^^^^^^^ * :attr:`id` - ID number of the prefix. * :attr:`prefix` - The IP prefix itself. + * :attr:`prefix_length` - Prefix len...
docs: Added prefix_length attribute Added the prefix_length attribute to the documentation.
py
diff --git a/blended/__main__.py b/blended/__main__.py index <HASH>..<HASH> 100644 --- a/blended/__main__.py +++ b/blended/__main__.py @@ -568,7 +568,10 @@ def build_files(outdir): line = line.replace("{relative_root}", relative_path) for i in range(len(plugins)): ...
fixed problems relating to importlib for <I>
py
diff --git a/glue/ligolw/metaio.py b/glue/ligolw/metaio.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/metaio.py +++ b/glue/ligolw/metaio.py @@ -2,10 +2,6 @@ __author__ = "Kipp Cannon <kipp@gravity.phys.uwm.edu>" __date__ = "$Date$" __version__ = "$Revision$" -try: - import numarray -except: - pass import re im...
Move import of numarray into one piece of code that needs it --- speeds up module load significantly for the normal case in which numarray isn't needed.
py
diff --git a/hsreplay/__init__.py b/hsreplay/__init__.py index <HASH>..<HASH> 100644 --- a/hsreplay/__init__.py +++ b/hsreplay/__init__.py @@ -2,6 +2,6 @@ __author__ = "Jerome Leclanche" __email__ = "jerome@leclan.ch" -__version__ = "1.1" +__version__ = "1.2" SYSTEM_DTD = "https://hearthsim.info/hsreplay/dtd/hsr...
Update DTD version to <I>
py
diff --git a/gitlint/__init__.py b/gitlint/__init__.py index <HASH>..<HASH> 100644 --- a/gitlint/__init__.py +++ b/gitlint/__init__.py @@ -1 +1 @@ -__version__ = "0.11.0dev" +__version__ = "0.11.0"
<I> release - Python <I> support - Python <I> no longer supported - Various dependency updates and under the hood fixes (see #<I>) Special
py
diff --git a/vstutils/management/commands/newproject.py b/vstutils/management/commands/newproject.py index <HASH>..<HASH> 100644 --- a/vstutils/management/commands/newproject.py +++ b/vstutils/management/commands/newproject.py @@ -20,7 +20,7 @@ class Command(BaseCommand): files_to_create = { 'frontend_src...
Fix: new project generation with index.js.
py
diff --git a/exchangelib/items.py b/exchangelib/items.py index <HASH>..<HASH> 100644 --- a/exchangelib/items.py +++ b/exchangelib/items.py @@ -225,7 +225,7 @@ class Item(RegisterMixIn): send_meeting_invitations=send_meeting_invitations ) assert self.item_id == item_id - ...
IsOnlineMeeting is read-only (at least in Office<I>). Fixes #<I>
py
diff --git a/salt/cache/consul.py b/salt/cache/consul.py index <HASH>..<HASH> 100644 --- a/salt/cache/consul.py +++ b/salt/cache/consul.py @@ -4,6 +4,8 @@ Minion data cache plugin for Consul key/value data store. .. versionadded:: 2016.11.2 +:depends: python-consul >= 0.2.0 + It is up to the system administrator ...
Fix #<I>, better handling of consul initialization issues
py
diff --git a/views.py b/views.py index <HASH>..<HASH> 100644 --- a/views.py +++ b/views.py @@ -139,8 +139,7 @@ def request_record(f): record=record, tabs=tabs, title=title, - get_mini_reviews=lambda *args, **kwargs: - ...
records: fix mini reviews display NOTE: beware, patch amended by Tibor to use new file names
py
diff --git a/pyrogram/client/types/list.py b/pyrogram/client/types/list.py index <HASH>..<HASH> 100644 --- a/pyrogram/client/types/list.py +++ b/pyrogram/client/types/list.py @@ -27,6 +27,6 @@ class List(list): return Object.__str__(self) def __repr__(self): - return "pyrogram.client.types.pyrogr...
Fix deserialization of pretty-printable lists
py
diff --git a/test/unit/Utilities/VertexOpsTest.py b/test/unit/Utilities/VertexOpsTest.py index <HASH>..<HASH> 100644 --- a/test/unit/Utilities/VertexOpsTest.py +++ b/test/unit/Utilities/VertexOpsTest.py @@ -49,8 +49,8 @@ class VertexOpsTest: sp.ones([self.geo.num_pores(), 3])) == 0.0 sel...
Committing an unspeakable sin...remove two tests that seem to be breaking Travis due to deprecation warnings coming from Matplotlib. Don't tell Brennan!
py
diff --git a/telemetry/telemetry/page/gtest_test_results.py b/telemetry/telemetry/page/gtest_test_results.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/page/gtest_test_results.py +++ b/telemetry/telemetry/page/gtest_test_results.py @@ -2,6 +2,7 @@ # Use of this source code is governed by a BSD-style license...
[telemetry] Print [ OK ] on skipped tests, the same as we do for successes. BUG=<I> TEST=I'm sure the trybots have got it covered. Review URL: <URL>
py
diff --git a/synapse/datamodel.py b/synapse/datamodel.py index <HASH>..<HASH> 100644 --- a/synapse/datamodel.py +++ b/synapse/datamodel.py @@ -208,7 +208,7 @@ class Univ(PropBase): ('univ:re', (self.name, valu, {})), ) - iops = self.type.getIndxOps(valu) + iops = self.type....
Pass cmpr in for Univ prop lifts; remove unneeded kwarg for another lops get
py
diff --git a/cloudshell/devices/standards/firewall/configuration_attributes_structure.py b/cloudshell/devices/standards/firewall/configuration_attributes_structure.py index <HASH>..<HASH> 100644 --- a/cloudshell/devices/standards/firewall/configuration_attributes_structure.py +++ b/cloudshell/devices/standards/firewall...
Added snmpv3 attributes to firewall
py
diff --git a/modopt/opt/gradient.py b/modopt/opt/gradient.py index <HASH>..<HASH> 100644 --- a/modopt/opt/gradient.py +++ b/modopt/opt/gradient.py @@ -33,6 +33,8 @@ class GradParent(object): Method for calculating the cost (default is ``None``) data_type : type, optional Expected data type of the...
Adding verbose attribute to GradParent to solve issue #<I> (#<I>) * Adding verbose attribute to GradParent to solve issue #<I> * Improved the attribute docstring * Fixed correct order of the attributes of GradParent.
py
diff --git a/asteval/asteval.py b/asteval/asteval.py index <HASH>..<HASH> 100644 --- a/asteval/asteval.py +++ b/asteval/asteval.py @@ -238,7 +238,7 @@ class Interpreter(object): if len(self.error) > 0 and not isinstance(node, ast.Module): msg = '%s' % msg err = ExceptionHolder(node, exc=e...
return without executing more of this node on return/break/continue
py
diff --git a/sos/plugins/docker.py b/sos/plugins/docker.py index <HASH>..<HASH> 100644 --- a/sos/plugins/docker.py +++ b/sos/plugins/docker.py @@ -54,7 +54,7 @@ class Docker(Plugin): class RedHatDocker(Docker, RedHatPlugin): - packages = ('docker-io',) + packages = ('docker', 'docker-io') def setup(se...
[docker] add 'docker' to the package list for Red Hat distros The docker package is named 'docker-io' in Fedora and 'docker' in RHEL and other downstream products. Add the 'docker' name to the package list in RedHatDocker to ensure the plugin runs.
py
diff --git a/qiskit/__init__.py b/qiskit/__init__.py index <HASH>..<HASH> 100644 --- a/qiskit/__init__.py +++ b/qiskit/__init__.py @@ -33,6 +33,10 @@ from .result import Result import qiskit.extensions.standard import qiskit.extensions.quantum_initializer +# Allow extending this namespace. Please note that currentl...
Fix main __init__ py instruction order (#<I>)
py
diff --git a/warehouse/packaging/views.py b/warehouse/packaging/views.py index <HASH>..<HASH> 100644 --- a/warehouse/packaging/views.py +++ b/warehouse/packaging/views.py @@ -85,8 +85,8 @@ def release_detail(release, request): .all() ) - # Get the latest non-prerelease version of this Proje...
Small clarification to comment (#<I>)
py
diff --git a/tests/helpers/test_dict.py b/tests/helpers/test_dict.py index <HASH>..<HASH> 100644 --- a/tests/helpers/test_dict.py +++ b/tests/helpers/test_dict.py @@ -309,6 +309,8 @@ class TestDictHelper(unittest.TestCase): self.assertEqual(expected, actual) + output_file.close() + os.remov...
fixup! Fix permission issue under windows.
py
diff --git a/aiohttp/__init__.py b/aiohttp/__init__.py index <HASH>..<HASH> 100644 --- a/aiohttp/__init__.py +++ b/aiohttp/__init__.py @@ -1,4 +1,4 @@ -__version__ = "3.8.0a3" +__version__ = "3.8.0a4" from typing import Tuple
Bump to <I>a4
py
diff --git a/visidata/vdtui.py b/visidata/vdtui.py index <HASH>..<HASH> 100755 --- a/visidata/vdtui.py +++ b/visidata/vdtui.py @@ -290,15 +290,15 @@ def anytype(r=None): anytype.__name__ = '' option('float_chars', '+-0123456789.eE_', 'valid numeric characters') -def currency(s): +def currency(s=''): 'a `float`...
Fix currency to accept empty string, and date to accept datetime
py
diff --git a/distutils/tests/test_config_cmd.py b/distutils/tests/test_config_cmd.py index <HASH>..<HASH> 100644 --- a/distutils/tests/test_config_cmd.py +++ b/distutils/tests/test_config_cmd.py @@ -1,5 +1,4 @@ """Tests for distutils.command.config.""" -import unittest import os import sys from test.support import ...
Prefer pytest for skip
py
diff --git a/angr/project.py b/angr/project.py index <HASH>..<HASH> 100644 --- a/angr/project.py +++ b/angr/project.py @@ -392,7 +392,7 @@ class Project(object): return False if self.analyzed('CFG'): - return self.analyze('CFG').cfg.is_thumb_addr(addr) + return self.analyze...
removed .cfg so things don't crash when ARM functions again
py
diff --git a/src/resource-graph/azext_resourcegraph/custom.py b/src/resource-graph/azext_resourcegraph/custom.py index <HASH>..<HASH> 100644 --- a/src/resource-graph/azext_resourcegraph/custom.py +++ b/src/resource-graph/azext_resourcegraph/custom.py @@ -25,6 +25,7 @@ from .vendored_sdks.resourcegraph.models import \ ...
Resource Graph: show warning when too many subscriptions (#<I>)
py
diff --git a/trakt/client.py b/trakt/client.py index <HASH>..<HASH> 100644 --- a/trakt/client.py +++ b/trakt/client.py @@ -5,6 +5,7 @@ from trakt.request import TraktRequest import logging import requests +import socket log = logging.getLogger(__name__) @@ -49,8 +50,27 @@ class TraktClient(object): ...
Rebuild session on socket.gaierror (code: 8)
py
diff --git a/lancet/commands/repository.py b/lancet/commands/repository.py index <HASH>..<HASH> 100644 --- a/lancet/commands/repository.py +++ b/lancet/commands/repository.py @@ -9,9 +9,11 @@ from ..helpers import get_issue, get_transition, set_issue_status, get_branch @click.command() @click.option('--base', '-b',...
Stop the Harvest timer after creating the PR by default
py
diff --git a/pluginmanager/compat.py b/pluginmanager/compat.py index <HASH>..<HASH> 100644 --- a/pluginmanager/compat.py +++ b/pluginmanager/compat.py @@ -21,10 +21,8 @@ if is_py3: import importlib def load_source(name, file_path): - spec = importlib.util.spec_from_file_location(name, - ...
changed way using importlib in compat
py
diff --git a/openquake/engine/calculators/risk/base.py b/openquake/engine/calculators/risk/base.py index <HASH>..<HASH> 100644 --- a/openquake/engine/calculators/risk/base.py +++ b/openquake/engine/calculators/risk/base.py @@ -116,6 +116,12 @@ def run_risk(sorted_assocs, calc, monitor): with get_assets_mon: ...
Raise an error for wrong time events
py
diff --git a/spyder/plugins/editor/panels/scrollflag.py b/spyder/plugins/editor/panels/scrollflag.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/panels/scrollflag.py +++ b/spyder/plugins/editor/panels/scrollflag.py @@ -50,7 +50,7 @@ class ScrollFlagArea(Panel): """This property holds the vertical o...
Fetch style from QApplication This is required for the Dark Style
py
diff --git a/pgcontents/tests/test_pgcontents_api.py b/pgcontents/tests/test_pgcontents_api.py index <HASH>..<HASH> 100644 --- a/pgcontents/tests/test_pgcontents_api.py +++ b/pgcontents/tests/test_pgcontents_api.py @@ -64,7 +64,7 @@ class _APITestBase(APITest): Test ContentsManager.walk. """ ...
TEST: Unicode is not my favorite method of text representation.
py
diff --git a/tests/test_page.py b/tests/test_page.py index <HASH>..<HASH> 100644 --- a/tests/test_page.py +++ b/tests/test_page.py @@ -108,7 +108,7 @@ def test_seed_url_keywords_multiple_params(base_url, driver): assert "key={}".format(value[1]) in seed_url import re - assert re.match("{}\?key=(foo|bar)&...
Stab at fixing flake8/pyflakes
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -121,7 +121,8 @@ setup( ], include_package_data=True, zip_safe=False, - scripts=[ # This is separate from the other console scripts just for efficiency's + scripts=[ + # This is separate from the ot...
setup.py: Fix PEP8 violation
py
diff --git a/fmn/rules/fedora_elections.py b/fmn/rules/fedora_elections.py index <HASH>..<HASH> 100644 --- a/fmn/rules/fedora_elections.py +++ b/fmn/rules/fedora_elections.py @@ -1,4 +1,4 @@ -def fedora_electionsi_candidate_delete(config, message): +def fedora_elections_candidate_delete(config, message): """ Elect...
fix typo in fedora_elections
py
diff --git a/cassiopeia/type/core/common.py b/cassiopeia/type/core/common.py index <HASH>..<HASH> 100644 --- a/cassiopeia/type/core/common.py +++ b/cassiopeia/type/core/common.py @@ -274,6 +274,8 @@ class Season(enum.Enum): season_4 = "SEASON2014" preseason_5 = "PRESEASON2015" season_5 = "SEASON2015" ...
update season enum for <I>
py
diff --git a/realtime/test/test_utilities.py b/realtime/test/test_utilities.py index <HASH>..<HASH> 100644 --- a/realtime/test/test_utilities.py +++ b/realtime/test/test_utilities.py @@ -20,7 +20,7 @@ __copyright__ = ('Copyright 2012, Australia Indonesia Facility for ' import os import logging import unittest -from ...
[Realtime] A better logging tests in realtime.
py
diff --git a/glances/processes.py b/glances/processes.py index <HASH>..<HASH> 100644 --- a/glances/processes.py +++ b/glances/processes.py @@ -400,15 +400,17 @@ class GlancesProcesses(object): s = self.__get_process_stats(proc, mandatory_stats=True, ...
Correct TypeError on processlist in MacOS (issue #<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -32,6 +32,7 @@ if __name__ == "__main__": author_email="adam.schubert@sg1-game.net", url="https://github.com/Salamek/cron-descriptor", long_description=long_description, + long_description_con...
Tell PyPI the long_description is markdown As per [packaging tutorial](<URL>) (see bottom). This should render it as markdown on <URL>
py
diff --git a/lol_scraper/match_downloader.py b/lol_scraper/match_downloader.py index <HASH>..<HASH> 100644 --- a/lol_scraper/match_downloader.py +++ b/lol_scraper/match_downloader.py @@ -48,7 +48,8 @@ def get_patch_changed(): finally: patch_changed_lock.release() -cache_autostore(version_key, 60*60, cac...
Fixed a bug where cache_autostore was not used as a wrapper
py
diff --git a/tests/test_profiling.py b/tests/test_profiling.py index <HASH>..<HASH> 100644 --- a/tests/test_profiling.py +++ b/tests/test_profiling.py @@ -40,7 +40,7 @@ class TestProfiling(GPflowTestCase): m = self.prepare() s = gpflow.settings.get_settings() s.profiling.dump_timeline = True ...
Change temporary file directory for profiling tests.
py
diff --git a/scripts/make_dist.py b/scripts/make_dist.py index <HASH>..<HASH> 100644 --- a/scripts/make_dist.py +++ b/scripts/make_dist.py @@ -314,7 +314,7 @@ def is_valid(filename): for arc, wfunc in (dist1, dist1.add), (dist2, dist2.add), (dist3, dist3.write): - for path in 'README.txt', 'LICENCE.txt': + f...
In make_dist, replace README.txt by README.md
py
diff --git a/project_generator/project.py b/project_generator/project.py index <HASH>..<HASH> 100644 --- a/project_generator/project.py +++ b/project_generator/project.py @@ -405,10 +405,10 @@ class Project: @staticmethod def _generate_output_dir(path): """this is a separate function, so that it can ...
Changes relpath calulation for generated project files. Closes #<I>
py
diff --git a/fastfood/book.py b/fastfood/book.py index <HASH>..<HASH> 100644 --- a/fastfood/book.py +++ b/fastfood/book.py @@ -40,8 +40,7 @@ class CookBook(object): def metadata(self): """Return dict representation of this cookbook's metadata.rb .""" if not self._metadata: - with open(...
using with statement causes file to close Fixes IOErrors and opens the files in read+write mode
py
diff --git a/lib/websession_webinterface.py b/lib/websession_webinterface.py index <HASH>..<HASH> 100644 --- a/lib/websession_webinterface.py +++ b/lib/websession_webinterface.py @@ -660,7 +660,7 @@ class WebInterfaceYourAccountPages(WebInterfaceDirectory): if len(roles) == 1: ...
Fixed a url redirection.
py
diff --git a/scoop/_control.py b/scoop/_control.py index <HASH>..<HASH> 100644 --- a/scoop/_control.py +++ b/scoop/_control.py @@ -121,7 +121,14 @@ def runFuture(future): uniqueReference) try: future.resultValue = future.callable(*future.args, **future.kargs) - except Exception ...
* Improved handling and logging of errors happening on workers.
py
diff --git a/instabot/api/api.py b/instabot/api/api.py index <HASH>..<HASH> 100644 --- a/instabot/api/api.py +++ b/instabot/api/api.py @@ -482,10 +482,10 @@ class API(object): def get_total_followers_or_followings(self, user_id, amount=None, which='followers'): if which == 'followers': key = ...
don't use 'getattr' when we can call the methods directly
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ def read(fname): setup( name='unleash', - version='0.4.dev1', + version='0.3.2.dev1', description=('Creates release commits directly in git, unleashes them on ' 'PyPI and pus...
Increased version to <I>.dev1 after release of <I>. Commit using `unleash <I>dev <<URL>
py
diff --git a/salt/modules/schedule.py b/salt/modules/schedule.py index <HASH>..<HASH> 100644 --- a/salt/modules/schedule.py +++ b/salt/modules/schedule.py @@ -55,7 +55,8 @@ SCHEDULE_CONF = [ 'until', 'after', 'return_config', - 'return_kwargs' + 'return_kwargs', + 'run_on...
Add run_on_start to SCHEDULE_CONF (#<I>) This is a fix for <I>.
py
diff --git a/dockerpty/pty.py b/dockerpty/pty.py index <HASH>..<HASH> 100644 --- a/dockerpty/pty.py +++ b/dockerpty/pty.py @@ -121,7 +121,7 @@ class PseudoTerminal(object): """ Present the PTY of the container inside the current process. - If the container is not running, an IOError is raised...
Don't specify behaviour when container isn't started
py
diff --git a/pymola/backends/casadi/generator.py b/pymola/backends/casadi/generator.py index <HASH>..<HASH> 100644 --- a/pymola/backends/casadi/generator.py +++ b/pymola/backends/casadi/generator.py @@ -627,7 +627,7 @@ def generate(ast_tree: ast.Collection, model_name: str) -> Model: component_ref = ast.ComponentR...
CasADi generator: Fix conflict introduced by rebase.
py
diff --git a/machina/apps/forum/abstract_models.py b/machina/apps/forum/abstract_models.py index <HASH>..<HASH> 100644 --- a/machina/apps/forum/abstract_models.py +++ b/machina/apps/forum/abstract_models.py @@ -97,7 +97,6 @@ class AbstractForum(MPTTModel, ActiveModel): ('can_vote_in_polls', _('Can vote in ...
'can_edit_topics' permission removed from Forum per-object permissions
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,8 +6,27 @@ mydir = os.path.dirname(__file__) if mydir: os.chdir(mydir) +version = '0.4' +base_url = 'https://github.com/dranjan/python-plyfile' + setup(name='plyfile', - version='0.4', + author='Darsh Ran...
Add missing setup arguments (preparing for submission to PyPI)
py
diff --git a/storage/google/cloud/storage/bucket.py b/storage/google/cloud/storage/bucket.py index <HASH>..<HASH> 100644 --- a/storage/google/cloud/storage/bucket.py +++ b/storage/google/cloud/storage/bucket.py @@ -421,9 +421,9 @@ class Bucket(_PropertyMixin): STANDARD_STORAGE_CLASS, NEARLINE_STORAGE_...
Mark old storage classes as legacy, not deprecated. (#<I>)
py
diff --git a/django_q/models.py b/django_q/models.py index <HASH>..<HASH> 100644 --- a/django_q/models.py +++ b/django_q/models.py @@ -134,7 +134,7 @@ class Schedule(models.Model): url = reverse('admin:django_q_success_change', args=(task.id,)) else: url = reverse('admin:d...
Schedule admin should show name instead of id in task link
py
diff --git a/ppb/sprites.py b/ppb/sprites.py index <HASH>..<HASH> 100644 --- a/ppb/sprites.py +++ b/ppb/sprites.py @@ -156,8 +156,7 @@ class BaseSprite(EventMixin): resource_path = None position: Vector = Vector(0, 0) facing: Vector = Vector(0, -1) - _size: Union[int, float] = 1 - _offset_value = N...
Replaces size property with a calculated _offset_value property.
py
diff --git a/_data.py b/_data.py index <HASH>..<HASH> 100644 --- a/_data.py +++ b/_data.py @@ -1669,10 +1669,12 @@ class fitter(): f = self._evaluate_all_functions(self._xdata_massaged, p) # get the full residuals list - r = [] + residuals = [] for n in range(len(f)): - ...
changed "r" to "residuals" for the returned studentized residuals list. Split up a fraction into variables to make it easier to read by reducing the number of ()'s and line length.
py
diff --git a/mmcv/runner/hooks/evaluation.py b/mmcv/runner/hooks/evaluation.py index <HASH>..<HASH> 100644 --- a/mmcv/runner/hooks/evaluation.py +++ b/mmcv/runner/hooks/evaluation.py @@ -55,7 +55,10 @@ class EvalHook(Hook): rule_map = {'greater': lambda x, y: x > y, 'less': lambda x, y: x < y} init_value_ma...
Add segmentation keys for greater_keys. (#<I>)
py
diff --git a/pycompilation/dist.py b/pycompilation/dist.py index <HASH>..<HASH> 100644 --- a/pycompilation/dist.py +++ b/pycompilation/dist.py @@ -194,7 +194,7 @@ class clever_build_ext(build_ext.build_ext): if ext.logger: ext.logger.info("Copying files needed for distribution..") for f, rel...
Keep relative path structure of dist_files
py
diff --git a/validator/sawtooth_validator/gossip/permission_verifier.py b/validator/sawtooth_validator/gossip/permission_verifier.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/gossip/permission_verifier.py +++ b/validator/sawtooth_validator/gossip/permission_verifier.py @@ -516,8 +516,9 @@ class Ide...
Fix IdentityCache existence check Fixes how the IdentityCache checks if an item has already been retrieved. Previously, the cache assumed that if the value in the cache was None, the item was never retrieved; instead, if the item is in the cache, the item has already been retrieved (even if the value is None), so we d...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -345,7 +345,9 @@ password = [ 'flask-bcrypt>=0.7.1', ] pinot = [ - 'pinotdb>=0.1.1,<1.0.0', + # pinotdb v0.1.1 may still work with older versions of Apache Pinot, but we've confirmed that it + # causes a proble...
Limit old versions of pinotdb to force update on CI (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ requirements = [] with open('requirements.txt') as f: requirements = f.read().splitlines() -version = '0.1.0' +version = '0.2.0' readme = '' with open('README.md') as f:
version updated I'm bad at version control
py
diff --git a/python/mxnet/optimizer.py b/python/mxnet/optimizer.py index <HASH>..<HASH> 100644 --- a/python/mxnet/optimizer.py +++ b/python/mxnet/optimizer.py @@ -1090,7 +1090,7 @@ class AdaGrad(Optimizer): Parameters ---------- eps: float, optional - Small value to avoid division by 0. + I...
Document AdaGrad eps as initial history accumulator value (#<I>)
py
diff --git a/devassistant/commands.py b/devassistant/commands.py index <HASH>..<HASH> 100644 --- a/devassistant/commands.py +++ b/devassistant/commands.py @@ -139,10 +139,10 @@ class DotDevassistantCommand(object): original_path_as_dict = {} for i, subas in enumerate(original_assistant_path): ...
When installing dependencies from .devassistant, use correct top-level assistant
py
diff --git a/cornice_sphinx/__init__.py b/cornice_sphinx/__init__.py index <HASH>..<HASH> 100644 --- a/cornice_sphinx/__init__.py +++ b/cornice_sphinx/__init__.py @@ -301,6 +301,7 @@ def rst2node(data): document.settings.rfc_references = False document.settings.character_level_inline_markup = False docum...
Initialize the ref_context as a dictionary. fixes #7
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ THIS_DIR = abspath(dirname(__file__)) REQUIRES = [ "python-dateutil~=2.8.0", "requests~=2.23.0", - "python-slugify~=3.0.2", + "python-slugify~=4.0.0", ] PACKAGES = find_packages(exclu...
Bump slugify to <I>
py
diff --git a/numina/core/oresult.py b/numina/core/oresult.py index <HASH>..<HASH> 100644 --- a/numina/core/oresult.py +++ b/numina/core/oresult.py @@ -41,6 +41,7 @@ class ObservationResult(object): self.configuration = 'default' self.prodid = None self.tags = {} + self.results = {} ...
Add a dictionary con contain the IDs of the results of other observations
py
diff --git a/estnltk/storage/postgres/collection.py b/estnltk/storage/postgres/collection.py index <HASH>..<HASH> 100755 --- a/estnltk/storage/postgres/collection.py +++ b/estnltk/storage/postgres/collection.py @@ -640,7 +640,7 @@ class PgCollection: for row in data_iterator: text_...
remove text paremeter from layer_to_dict
py
diff --git a/django_ses/__init__.py b/django_ses/__init__.py index <HASH>..<HASH> 100644 --- a/django_ses/__init__.py +++ b/django_ses/__init__.py @@ -92,12 +92,7 @@ class SESBackend(BaseEmailBackend): def close(self): """Close any open HTTP connections to the API server. """ - try: - ...
Fix close connection error. (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,11 +9,9 @@ setup( author="Beau Barker", author_email="beauinmelbourne@gmail.com", classifiers=[ - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3.3", - "Pr...
Remove unsupported pythons from classifiers
py
diff --git a/andes/core/symprocessor.py b/andes/core/symprocessor.py index <HASH>..<HASH> 100644 --- a/andes/core/symprocessor.py +++ b/andes/core/symprocessor.py @@ -142,6 +142,8 @@ class SymProcessor: self.lambdify_func[0]['Indicator'] = lambda x: x self.lambdify_func[0]['imag'] = np.imag s...
Added `re` and `im` as custom functions.
py
diff --git a/tests/test_ctl.py b/tests/test_ctl.py index <HASH>..<HASH> 100644 --- a/tests/test_ctl.py +++ b/tests/test_ctl.py @@ -32,7 +32,7 @@ def test_rw_config(): @patch('patroni.ctl.load_config', - Mock(return_value={'scope': 'alpha', 'postgresql': {'data_dir': '.', 'parameters': {}, 'retry_timeout': 5}...
Set postgresql.pgpass to ./pgpass (#<I>) This avoids test failures if $HOME is not available (fixes: #<I>).
py
diff --git a/gbdxtools/images/worldview.py b/gbdxtools/images/worldview.py index <HASH>..<HASH> 100644 --- a/gbdxtools/images/worldview.py +++ b/gbdxtools/images/worldview.py @@ -66,7 +66,10 @@ class WVImage(IpeImage): def parts(self): if self._parts is None: self._parts = [IdahoImage(rec['pr...
adding bucket name to idaho image inits
py
diff --git a/bcbio/variation/validate.py b/bcbio/variation/validate.py index <HASH>..<HASH> 100644 --- a/bcbio/variation/validate.py +++ b/bcbio/variation/validate.py @@ -115,7 +115,7 @@ def _normalize_cwl_inputs(items): vrn_files.append(data["vrn_file"]) ready_items.append(data) if len(with_...
CWL: pass normalized objects to lead item picking for ensemble
py
diff --git a/AppiumLibrary/keywords/_touch.py b/AppiumLibrary/keywords/_touch.py index <HASH>..<HASH> 100644 --- a/AppiumLibrary/keywords/_touch.py +++ b/AppiumLibrary/keywords/_touch.py @@ -106,7 +106,7 @@ class _TouchKeywords(KeywordGroup): driver.execute_script("mobile: scroll", {"direction": 'up', 'element...
added duration as another argument for long_press method, also added to description
py
diff --git a/testkitbackend/requests.py b/testkitbackend/requests.py index <HASH>..<HASH> 100644 --- a/testkitbackend/requests.py +++ b/testkitbackend/requests.py @@ -305,7 +305,7 @@ def ResultConsume(backend, data): "protocolVersion": ".".join(map(str, summary.server.protocol_version)), ...
TestKit backend: add address field to Summary.serverInfo (#<I>)
py
diff --git a/rarfile.py b/rarfile.py index <HASH>..<HASH> 100644 --- a/rarfile.py +++ b/rarfile.py @@ -94,7 +94,24 @@ from hashlib import sha1 # only needed for encryped headers try: - from Crypto.Cipher import AES + try: + from cryptography.hazmat.primitives.ciphers import algorithms, modes, Cipher + ...
Use cryptography module as preferred AES impl.
py
diff --git a/openquake/hazardlib/valid.py b/openquake/hazardlib/valid.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/valid.py +++ b/openquake/hazardlib/valid.py @@ -415,7 +415,6 @@ def coordinates(value): [(1.1, 1.2, 0.0), (2.2, 2.3, 0.0)] >>> coordinates('1.1 1.2 -0.4, 2.2 2.3 -0.5') [(1.1, 1....
Remove an empty line [skip CI]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -159,7 +159,9 @@ else: n_cpu = 0 ext_modules_settings = cythonize(generate_extensions(ext_modules, line_trace), - compiler_directives={'embedsignature': True, 'linetrace': line_trace}, ...
FEATURE: added cython language level settings
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, find_packages from setuptools import Command import sys, os -version = '0.1.0b' +version = '0.1.0b2' class PyTest(Command): user_options = []
Released version <I>b2
py
diff --git a/pysat/tests/test_instrument.py b/pysat/tests/test_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_instrument.py +++ b/pysat/tests/test_instrument.py @@ -194,14 +194,26 @@ class TestBasics(): assert files[-1] == dt.datetime(2009, 1, 31) def test_download_updated_files(self, ...
TST: test each part of routine
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ setup( # ]}, #install_requires = install_requires, #dependency_links = dependency_links, - requires = [ + install_requires = [ 'pug-nlp', 'pug-ann', # 'pug-invest'...
setuptools uses install_requires NOT require or requires
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup( packages=find_packages(exclude='tests'), license='MIT', install_requires=[ - 'click==4.1', + 'click==5.1', 'gitpython==1.0.1', 'invoke==0.10.1', 'se...
Upgrade dependency click to ==<I>
py
diff --git a/tests/settings.py b/tests/settings.py index <HASH>..<HASH> 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -22,6 +22,7 @@ if LIVE_TEST: 'use_mars': USE_MARS, 'bytes_to_unicode': True, 'pooling': True, + 'timeout': 30, } if 'tds_version' in os.environ:
adding timeout of <I> seconds for tests Make sure that tests don't run forever if there is some kind of lock condition.
py
diff --git a/GEOparse/utils.py b/GEOparse/utils.py index <HASH>..<HASH> 100644 --- a/GEOparse/utils.py +++ b/GEOparse/utils.py @@ -64,7 +64,8 @@ def download_from_url(url, destination_path, try: fn = Downloader( url, - outdir=os.path.dirname(destination_path)) + outdir=o...
fix: Pass filename to downloader
py
diff --git a/pyaavso/utils.py b/pyaavso/utils.py index <HASH>..<HASH> 100644 --- a/pyaavso/utils.py +++ b/pyaavso/utils.py @@ -31,10 +31,10 @@ def download_observations(observer_code): 'obs_types': 'all', 'page': page_number, }) - parser = WebObsResultsParser(response.content) ...
Use response.text for automatic decoding.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,7 +18,7 @@ setup( author="Steve Engledow", author_email="sengledo@amazon.co.uk", license="Apache2", - packages=find_packages(), + packages=find_packages(exclude=["tests"]), install_requires=[ ...
Update setup.py When using the servereless framework with troposphere this project is pulled since it's included in the setup.py of troposphere since version <I> and the "tests" file being included causes deployments to fail since tests is a common folder in our microservice projects.
py
diff --git a/functional/test/test_streams.py b/functional/test/test_streams.py index <HASH>..<HASH> 100644 --- a/functional/test/test_streams.py +++ b/functional/test/test_streams.py @@ -3,6 +3,7 @@ from __future__ import absolute_import import sqlite3 import unittest import collections +import sys import six @...
Ignore more pypy parallel tests
py