diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/lexicon/providers/transip.py b/lexicon/providers/transip.py index <HASH>..<HASH> 100644 --- a/lexicon/providers/transip.py +++ b/lexicon/providers/transip.py @@ -80,6 +80,7 @@ class Provider(BaseProvider): ) for record in records: record['id'] = "{name}-{type}".format(**recor...
Make record names fully qualified before returning them
py
diff --git a/src/examples/tictactoe.py b/src/examples/tictactoe.py index <HASH>..<HASH> 100644 --- a/src/examples/tictactoe.py +++ b/src/examples/tictactoe.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import numpy as np -from scipy.sparse import dok_matrix as spdok +from scipy.sparse import dok_matrix from mdptool...
use a numpy array for the rewards as sparse rewards are not currently working in mdptoolbox
py
diff --git a/client/python/conductor/conductor.py b/client/python/conductor/conductor.py index <HASH>..<HASH> 100644 --- a/client/python/conductor/conductor.py +++ b/client/python/conductor/conductor.py @@ -75,8 +75,10 @@ class BaseClient(object): self.__print(resp) self.__checkForSuccess(resp) - ...
Set the default value of urlformat to None
py
diff --git a/nodeconductor/jira/backend.py b/nodeconductor/jira/backend.py index <HASH>..<HASH> 100644 --- a/nodeconductor/jira/backend.py +++ b/nodeconductor/jira/backend.py @@ -145,6 +145,7 @@ class JiraRealBackend(JiraBaseBackend): else: query_string = "project = {} AND reporter = {}".f...
Order JIRA issues by date (SAAS-<I>)
py
diff --git a/pybar/fei4_run_base.py b/pybar/fei4_run_base.py index <HASH>..<HASH> 100644 --- a/pybar/fei4_run_base.py +++ b/pybar/fei4_run_base.py @@ -167,6 +167,10 @@ class Fei4RunBase(RunBase): self.dut['ENABLE_CHANNEL']['CH2'] = 1 self.dut['ENABLE_CHANNEL']['CH3'] = 1 self.du...
ENH: adding support for LX9 board
py
diff --git a/SpiffWorkflow/bpmn/specs/MultiInstanceTask.py b/SpiffWorkflow/bpmn/specs/MultiInstanceTask.py index <HASH>..<HASH> 100644 --- a/SpiffWorkflow/bpmn/specs/MultiInstanceTask.py +++ b/SpiffWorkflow/bpmn/specs/MultiInstanceTask.py @@ -127,9 +127,9 @@ class MultiInstanceTask(TaskSpec): if is_number(va...
Changed to determine using the instance so that the new Box variables get the right treatment.
py
diff --git a/bids/layout/tests/test_models.py b/bids/layout/tests/test_models.py index <HASH>..<HASH> 100644 --- a/bids/layout/tests/test_models.py +++ b/bids/layout/tests/test_models.py @@ -2,6 +2,7 @@ import os import pytest import bids import copy +from pathlib import Path from sqlalchemy import create_engine ...
TEST: Verify Path can accept a BIDSFile
py
diff --git a/launch_control/utils/json/__init__.py b/launch_control/utils/json/__init__.py index <HASH>..<HASH> 100644 --- a/launch_control/utils/json/__init__.py +++ b/launch_control/utils/json/__init__.py @@ -261,8 +261,9 @@ Let's see an example: >>> DefaultClassRegistry.register_proxy(datetime, datetime_proxy) # do...
Make test output deterministic by using sorted_keys=True
py
diff --git a/elasticsearch_dsl/field.py b/elasticsearch_dsl/field.py index <HASH>..<HASH> 100644 --- a/elasticsearch_dsl/field.py +++ b/elasticsearch_dsl/field.py @@ -289,3 +289,6 @@ class GeoShape(Field): class Completion(Field): name = 'completion' + +class Percolator(Field): + name = 'percolator'
Add support for percolator type (#<I>) Add the Percolator type to the list of supported field types.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -31,6 +31,8 @@ setuptools.setup( packages=setuptools.find_packages(), classifiers=[ "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: ...
setup.py: added classifiers
py
diff --git a/lenses/lens.py b/lenses/lens.py index <HASH>..<HASH> 100644 --- a/lenses/lens.py +++ b/lenses/lens.py @@ -204,8 +204,10 @@ class Lens(object): self._assert_unbound('Lens.flip') return Lens(self.state, self.lens.flip()) - def __get__(self, obj, type=None): - return self.bind(ob...
made Lens.__get__ more explicit about only binding with instances
py
diff --git a/edisgo/grid/components.py b/edisgo/grid/components.py index <HASH>..<HASH> 100644 --- a/edisgo/grid/components.py +++ b/edisgo/grid/components.py @@ -257,12 +257,15 @@ class Line(Component): _length: float Length of the line calculated in linear distance. Unit: m + _quantity: float + ...
Add quantity of parallel lines as attribute to Line object
py
diff --git a/torrent.py b/torrent.py index <HASH>..<HASH> 100644 --- a/torrent.py +++ b/torrent.py @@ -167,13 +167,17 @@ class torrent(): print 'From {} received: {}'.format(i, data) if data: s.setblocking(False) - self.rlist.append(s) - ...
Added method to initialize new peers
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ def check_setuptools(): check_setuptools() setup(name='instana', - version='1.0.0', + version='1.1.0', download_url='https://github.com/instana/python-sensor', url='https://www.instan...
Bump package version to <I>
py
diff --git a/holoviews/plotting/dataplots.py b/holoviews/plotting/dataplots.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/dataplots.py +++ b/holoviews/plotting/dataplots.py @@ -8,7 +8,7 @@ from matplotlib.table import Table as mpl_Table import param from ..core import Map, View, Overlay -from ..view impor...
Enabled SideHistogram to get cmap from Points
py
diff --git a/confit.py b/confit.py index <HASH>..<HASH> 100644 --- a/confit.py +++ b/confit.py @@ -348,7 +348,7 @@ def as_choice(choices): # Main interface. class Configuration(RootView): - def __init__(self, appname, modname=None, read=True): + def __init__(self, name, modname=None, read=True): """C...
application name is now also the root view name This makes for slightly nicer diagnostic messages and repr()s -- no mysterious "root".
py
diff --git a/tests/test_model.py b/tests/test_model.py index <HASH>..<HASH> 100644 --- a/tests/test_model.py +++ b/tests/test_model.py @@ -184,6 +184,11 @@ class TestData(base.BaseTestCase): self.assertEqual(['string', Decimal(10.0), 1, 'string', 'string'], converted_row) + def t...
added convert_row test with null values
py
diff --git a/tests/integration/test_basic.py b/tests/integration/test_basic.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_basic.py +++ b/tests/integration/test_basic.py @@ -27,6 +27,7 @@ def test_graceful_shutdown(mini_sentry, relay): assert event["logentry"] == {"formatted": "Hello, World!"} +@p...
test(shutdown): Skip flaky test (#<I>) Skip flaky test_forced_shutdown for now.
py
diff --git a/nugridpy/utils.py b/nugridpy/utils.py index <HASH>..<HASH> 100644 --- a/nugridpy/utils.py +++ b/nugridpy/utils.py @@ -749,7 +749,7 @@ class iniabu(Utils): ''' - sum_before = 1. + sum_before = sum(self.abu) for i in range(len(species_hash)): sum_befor...
Update utils.py Do not assume your sum before is 1 necessarily, if it is not your final sum will not be 1.
py
diff --git a/aiohttp/connector.py b/aiohttp/connector.py index <HASH>..<HASH> 100644 --- a/aiohttp/connector.py +++ b/aiohttp/connector.py @@ -11,6 +11,7 @@ import warnings from collections import defaultdict from itertools import chain from math import ceil +from types import MappingProxyType from . import hdrs ...
Use MappingProxyType instead of dict copy for TCPConnector.resolved_hosts
py
diff --git a/build.py b/build.py index <HASH>..<HASH> 100755 --- a/build.py +++ b/build.py @@ -430,7 +430,9 @@ def hostexamples(t): def check_examples(t): directory = 'build/gh-pages/%(BRANCH)s/' examples = ['build/gh-pages/%(BRANCH)s/' + e for e in EXAMPLES] - all_examples = [e + '?mode=whitespace' for e...
Check the examples in raw mode as well
py
diff --git a/melodist/util/util.py b/melodist/util/util.py index <HASH>..<HASH> 100644 --- a/melodist/util/util.py +++ b/melodist/util/util.py @@ -368,6 +368,9 @@ def daily_from_hourly(df): def calculate_mean_daily_course_by_month(data_hourly, normalize=False): + data_hourly = data_hourly.copy() + data_hourl...
calculate_mean_daily_course_by_month: make sure index has no name
py
diff --git a/test/integration/containerized/test_cli_containerized.py b/test/integration/containerized/test_cli_containerized.py index <HASH>..<HASH> 100644 --- a/test/integration/containerized/test_cli_containerized.py +++ b/test/integration/containerized/test_cli_containerized.py @@ -25,6 +25,12 @@ def test_module_ru...
Set container env var for consistent test results
py
diff --git a/cherrypy/process/wspbus.py b/cherrypy/process/wspbus.py index <HASH>..<HASH> 100644 --- a/cherrypy/process/wspbus.py +++ b/cherrypy/process/wspbus.py @@ -98,7 +98,9 @@ class ChannelFailures(Exception): def __str__(self): exception_strings = map(repr, self.get_instances()) return self...
Make the ChannelFailure exception more useful in backtraces and debugging shells
py
diff --git a/transformers/data/processors/squad.py b/transformers/data/processors/squad.py index <HASH>..<HASH> 100644 --- a/transformers/data/processors/squad.py +++ b/transformers/data/processors/squad.py @@ -571,7 +571,9 @@ class SquadExample(object): # Start end end positions only has a value during evalua...
Correct max position for SQUAD and TFDS
py
diff --git a/ci/batch/submit-job.py b/ci/batch/submit-job.py index <HASH>..<HASH> 100644 --- a/ci/batch/submit-job.py +++ b/ci/batch/submit-job.py @@ -1,8 +1,9 @@ import argparse -from datetime import datetime import random +import re import sys import time +from datetime import datetime import boto3 from botoc...
Enforce AWS Batch jobName rules (#<I>) For example, "." is not allowed to occur in a jobName. As jobName is typically based on branch name in our setup, "." may occur in the requested jobName leading to failure. With this commit, all disallowed characters are simply removed.
py
diff --git a/tabula/io.py b/tabula/io.py index <HASH>..<HASH> 100644 --- a/tabula/io.py +++ b/tabula/io.py @@ -24,6 +24,7 @@ import os import platform import shlex import subprocess +from collections import defaultdict from logging import getLogger import numpy as np @@ -653,11 +654,25 @@ def _extract_from(raw_j...
fix: avoid duplicate column name With multiple_tables=True, column name is built by tabula-py. When there is duplicated column name, pandas fetches multiple columns so that `pd.to_numeric` will fails. This patch makes column names unique even if there's duplicated column names.
py
diff --git a/holoviews/ipython/preprocessors.py b/holoviews/ipython/preprocessors.py index <HASH>..<HASH> 100644 --- a/holoviews/ipython/preprocessors.py +++ b/holoviews/ipython/preprocessors.py @@ -124,7 +124,7 @@ class OutputMagicProcessor(Preprocessor): template='hv.util.outp...
Updated argument order in OutputMagicProcessor
py
diff --git a/posttroll/subscriber.py b/posttroll/subscriber.py index <HASH>..<HASH> 100644 --- a/posttroll/subscriber.py +++ b/posttroll/subscriber.py @@ -217,7 +217,8 @@ class Subscriber(object): # timeout yield None except ZMQError as err: - ...
Do not log exception if listener is shutting down
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -55,8 +55,6 @@ setup( extras_require={ 'plotly': ['plotly>=3.6.0', 'psutil>=5.5.1'], # for plotly image saving 'docs': [ - 'Jinja2<3.1', # New release 3.1.0 breaks sphinx-bluebrain-theme - ...
Remove duplicated deps jinja, sphinx (#<I>)
py
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/event_based.py +++ b/openquake/calculators/event_based.py @@ -163,14 +163,17 @@ def compute_hazard(sources_or_ruptures, src_filter, res.num_ruptures = len(rupture...
Turned event_based.computer_hazard into a generator [skip hazardlib][demos]
py
diff --git a/shinken/db.py b/shinken/db.py index <HASH>..<HASH> 100644 --- a/shinken/db.py +++ b/shinken/db.py @@ -131,3 +131,7 @@ class DB(object): def fetchone(self): """Just get an entry""" return self.db_cursor.fetchone() + + def fetchall(self): + """Get all entry""" + ...
Add fetchall method to db.py The fectchall may be useful in some case, it's no big deal to add it. @naparuba, is it fine? :)
py
diff --git a/pyrainbird/__init__.py b/pyrainbird/__init__.py index <HASH>..<HASH> 100644 --- a/pyrainbird/__init__.py +++ b/pyrainbird/__init__.py @@ -90,8 +90,8 @@ class RainbirdController: return 0 def currentIrrigation(self): - resp=self.request ("CurrentStationsActive") s...
Wrong validations on current Irrigation state
py
diff --git a/tests/unit/modules/boto_elasticsearch_domain_test.py b/tests/unit/modules/boto_elasticsearch_domain_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/boto_elasticsearch_domain_test.py +++ b/tests/unit/modules/boto_elasticsearch_domain_test.py @@ -38,6 +38,7 @@ except ImportError: # https://gith...
Ah, pylint. Equal parts useful and annoying.
py
diff --git a/xtuml/load.py b/xtuml/load.py index <HASH>..<HASH> 100644 --- a/xtuml/load.py +++ b/xtuml/load.py @@ -479,12 +479,16 @@ class ModelLoader(object): raise ParsingException("unknown error") -def load_metamodel(filenames): +def load_metamodel(resource): ''' - Load and return a meta mod...
load: allow both a list of filenames, and a single filename as argument type to load_metamodel
py
diff --git a/py3status/formatter.py b/py3status/formatter.py index <HASH>..<HASH> 100644 --- a/py3status/formatter.py +++ b/py3status/formatter.py @@ -700,4 +700,9 @@ class Block: out[0]["full_text"] = " " * min_length + out[0]["full_text"] min_length = 0 + # support pango spe...
formatter: support pango special & character
py
diff --git a/satpy/readers/oceancolorcci_l3_nc.py b/satpy/readers/oceancolorcci_l3_nc.py index <HASH>..<HASH> 100644 --- a/satpy/readers/oceancolorcci_l3_nc.py +++ b/satpy/readers/oceancolorcci_l3_nc.py @@ -16,7 +16,12 @@ # You should have received a copy of the GNU General Public License along with # satpy. If not,...
Update OC_CCI docstring.
py
diff --git a/sos/report/plugins/saphana.py b/sos/report/plugins/saphana.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/saphana.py +++ b/sos/report/plugins/saphana.py @@ -51,7 +51,7 @@ class saphana(Plugin, RedHatPlugin): inst = inst.strip()[-2:] self.ge...
[saphana] remove redundant unused argument of get_inst_info get_inst_info does not use and isnt called with 'prefix' argument Resolves: #<I>
py
diff --git a/pycanlib/CAN.py b/pycanlib/CAN.py index <HASH>..<HASH> 100644 --- a/pycanlib/CAN.py +++ b/pycanlib/CAN.py @@ -953,3 +953,7 @@ class AcceptanceFilter(Listener): return msg else: return None + +class MessagePrinter(Listener): + def on_message_received(self, msg): +...
Added MessagePrinter subclass of CAN.Listener
py
diff --git a/tests/test_TruStar.py b/tests/test_TruStar.py index <HASH>..<HASH> 100644 --- a/tests/test_TruStar.py +++ b/tests/test_TruStar.py @@ -62,7 +62,6 @@ class TruStarTests(unittest.TestCase): # update report report.body = "Bleh bleh bleh" - report.enclave_ids = None self.ts.u...
do not submit report with no enclaves in test
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ from setuptools import setup setup( name='ordbok', - version='0.1.3', + version='0.1.4', packages=['ordbok'], url='http://github.com/alphaworksinc/ordbok', license='MIT',
general-refactor: bump to <I>
py
diff --git a/airflow/jobs/scheduler_job.py b/airflow/jobs/scheduler_job.py index <HASH>..<HASH> 100644 --- a/airflow/jobs/scheduler_job.py +++ b/airflow/jobs/scheduler_job.py @@ -1542,6 +1542,7 @@ class SchedulerJob(BaseJob): # pylint: disable=too-many-instance-attributes return 0 ...
Fix locking issue stopping tasks running with SequentialExecutor (#<I>) Missing a commit means that the the row level lock was not released before `executor.heartbeat()` was called. This was only a problem for the SequentialExecutor, as all the other executors would continue running the scheduler code so the lock ...
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ REQUIREMENTS = [ ] AUTHOR = u'Novapost' EMAIL = u'bruno.bord@novapost.fr' -URL = u'https://github.com/novapost/django-sql-log' +URL = u'https://github.com/novafloss/django-sql-log' CLASSIFIERS = [ 'Deve...
changed project URL reference (don't worry about the previous one, it's magically redirected)
py
diff --git a/kubernetes/K8sObject.py b/kubernetes/K8sObject.py index <HASH>..<HASH> 100644 --- a/kubernetes/K8sObject.py +++ b/kubernetes/K8sObject.py @@ -51,7 +51,7 @@ class K8sObject(object): self.model = BaseModel() try: - urls = BaseUrls(version=self.config.version, namespace=self.con...
K8sObject: fixes invocation of BaseUrls
py
diff --git a/condoor/version.py b/condoor/version.py index <HASH>..<HASH> 100644 --- a/condoor/version.py +++ b/condoor/version.py @@ -1,3 +1,3 @@ """Version information.""" -__version__ = '1.0.0b3' +__version__ = '1.0.0b4'
Bumping version number to <I>b4
py
diff --git a/play/resolve.py b/play/resolve.py index <HASH>..<HASH> 100644 --- a/play/resolve.py +++ b/play/resolve.py @@ -18,7 +18,6 @@ Recommended cases to test: import argparse import operator -from packaging.markers import InvalidMarker, Marker from requirementslib import Pipfile, Requirement from requirement...
Use `InstallRequirement` to handle marker evaluation.
py
diff --git a/issuetracker/sphinxcontrib/issuetracker.py b/issuetracker/sphinxcontrib/issuetracker.py index <HASH>..<HASH> 100644 --- a/issuetracker/sphinxcontrib/issuetracker.py +++ b/issuetracker/sphinxcontrib/issuetracker.py @@ -126,8 +126,9 @@ def get_google_code_issue_information(project, user, issue_id, env): ...
issuetracker: google code: fix url ("html5lib" project was hardcoded) and make sure closed issues are properly recognized as such.
py
diff --git a/tests/test_http.py b/tests/test_http.py index <HASH>..<HASH> 100644 --- a/tests/test_http.py +++ b/tests/test_http.py @@ -7,8 +7,8 @@ class HttpTest(PPPTestCase(app)): def testPostOnly(self): self.assertEqual(self.app.get('/', status='*').status_int, 405) self.assertEqual(self.app.pu...
Fix tests with respect to <I>bf0b3af<I>aa9bc<I>fef<I>c<I>bd1.
py
diff --git a/src/txkube/__init__.py b/src/txkube/__init__.py index <HASH>..<HASH> 100644 --- a/src/txkube/__init__.py +++ b/src/txkube/__init__.py @@ -10,7 +10,7 @@ __all__ = [ "IObject", "IKubernetes", "IKubernetesClient", "KubernetesError", "UnrecognizedVersion", "UnrecognizedKind", - "v1", "iobject_fr...
expose v1beta1 at the top-level
py
diff --git a/lib/svtplay_dl/utils/__init__.py b/lib/svtplay_dl/utils/__init__.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/utils/__init__.py +++ b/lib/svtplay_dl/utils/__init__.py @@ -180,7 +180,7 @@ def select_quality(options, streams): http = HTTP(options) # Test if the wanted stream is available. If...
select_quality: this should be get and not pop
py
diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py index <HASH>..<HASH> 100644 --- a/cheroot/test/test_ssl.py +++ b/cheroot/test/test_ssl.py @@ -354,7 +354,7 @@ def test_tls_client_auth( ): expected_substrings += ( 'bad handshake: ' - "...
Fix tuple concat in TLS tests
py
diff --git a/mongoctl/mongoctl.py b/mongoctl/mongoctl.py index <HASH>..<HASH> 100644 --- a/mongoctl/mongoctl.py +++ b/mongoctl/mongoctl.py @@ -2356,11 +2356,14 @@ class Server(DocumentWrapper): # but there are no admin users yet if not self.needs_to_auth(dbname): return db - # If t...
Be more persistent in using credentials we already know ("admin" db), to initialize DBs with credentials we'd like them to have.
py
diff --git a/visidata/colorsheet.py b/visidata/colorsheet.py index <HASH>..<HASH> 100644 --- a/visidata/colorsheet.py +++ b/visidata/colorsheet.py @@ -39,7 +39,7 @@ class ColorSheet(Sheet): scr.addstr(y, x, s, colors[c]) -BaseSheet.addCommand(None, 'open-colors', 'vd.push(vd.colorsSheet)', 'open Color ...
Fix typo in description of open-colors help
py
diff --git a/openquake/commonlib/calculators/base.py b/openquake/commonlib/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/calculators/base.py +++ b/openquake/commonlib/calculators/base.py @@ -49,18 +49,35 @@ def persistent_attribute(name, *extras): :returns: a property to be added to a c...
Added cache to persistent_attributes
py
diff --git a/ginga/canvas/CanvasObject.py b/ginga/canvas/CanvasObject.py index <HASH>..<HASH> 100644 --- a/ginga/canvas/CanvasObject.py +++ b/ginga/canvas/CanvasObject.py @@ -95,8 +95,9 @@ class CanvasObjectBase(Callback.Callbacks): self._cdmap = mapobj def canvascoords(self, x, y, center=True):...
Fixed bug with certain drawing operations - fixed a bug to use the viewer's mapping operation if non was supplied by the canvas object
py
diff --git a/onnx/backend/test/stat_coverage.py b/onnx/backend/test/stat_coverage.py index <HASH>..<HASH> 100644 --- a/onnx/backend/test/stat_coverage.py +++ b/onnx/backend/test/stat_coverage.py @@ -5,6 +5,7 @@ from __future__ import print_function from __future__ import unicode_literals import os +import io fro...
[Minor] Fix Windows line ending in test coverage generating script (#<I>) * Fix Windows line ending in test coverage generating script * Update to use io for unifing line ends
py
diff --git a/cwltool/draft2tool.py b/cwltool/draft2tool.py index <HASH>..<HASH> 100644 --- a/cwltool/draft2tool.py +++ b/cwltool/draft2tool.py @@ -372,9 +372,9 @@ class CommandLineTool(Process): "writable": t.get("writable") } else: - ...
Fix entryname and writable In InitialWorkDirRequirement section if listing is set as Expression that returns list of objects like [ { "entry": inputs.input_name } ] where input_name is File, cwltool shouldn't fail trying to get "entryname" or "writable" fields from the Dict.
py
diff --git a/lk.py b/lk.py index <HASH>..<HASH> 100755 --- a/lk.py +++ b/lk.py @@ -52,7 +52,7 @@ def build_parser(): parser.add_argument('--open-with', '-o', metavar='COMMAND', dest='command_strings', action='append', default=[], type=str, - ...
fixed issue where help for --open-with printed incorrectly
py
diff --git a/pyoram/tree/virtualheap.py b/pyoram/tree/virtualheap.py index <HASH>..<HASH> 100644 --- a/pyoram/tree/virtualheap.py +++ b/pyoram/tree/virtualheap.py @@ -326,9 +326,9 @@ class SizedVirtualHeap(VirtualHeap): def LeafNodeCount(self): return self.LeafBucketCount() def FirstLeafNode(self): -...
tweaking methods to increase coverage from tests
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ LONG_DESC = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() setup(name='scrapy-redis', - version='0.5.2', + version='0.5.3', description='Redis-based components for Scrapy'...
Release <I> due to pypi misversioning.
py
diff --git a/src/python/pants/core/goals/package.py b/src/python/pants/core/goals/package.py index <HASH>..<HASH> 100644 --- a/src/python/pants/core/goals/package.py +++ b/src/python/pants/core/goals/package.py @@ -52,7 +52,7 @@ class OutputPathField(StringField, AsyncFieldMixin): help = ( "Where the buil...
Add missing backtick (#<I>)
py
diff --git a/debug_toolbar_mongo/operation_tracker.py b/debug_toolbar_mongo/operation_tracker.py index <HASH>..<HASH> 100644 --- a/debug_toolbar_mongo/operation_tracker.py +++ b/debug_toolbar_mongo/operation_tracker.py @@ -43,7 +43,7 @@ def _get_stacktrace(): "Could not retrieve stack. IndexError excep...
Fix "$query" KeyError in with PyMongo <I>+ This appeared to be happening in the case where there were no PyMongo queries and an empty dictionary was returned. Using dict.get fixes this problem, and is backwards compatible with PyMongo < <I>. Fixes #<I>
py
diff --git a/examples/app/downloads/downloads.py b/examples/app/downloads/downloads.py index <HASH>..<HASH> 100644 --- a/examples/app/downloads/downloads.py +++ b/examples/app/downloads/downloads.py @@ -107,9 +107,9 @@ class DownloadsApp(BokehApplet): downloads_plot = Instance(Plot) punchcard_plot = Instance(...
Update app/downloads example to new session API
py
diff --git a/command/bdist_wininst.py b/command/bdist_wininst.py index <HASH>..<HASH> 100644 --- a/command/bdist_wininst.py +++ b/command/bdist_wininst.py @@ -253,8 +253,14 @@ class bdist_wininst (Command): # empty pre-install script cfgdata = cfgdata + "\0" file.write(cfgdata) + + ...
The binary layout of cfgdata has changed, so the magic number has to change as well. Add a comment explaining this.
py
diff --git a/tests/test_pluckable.py b/tests/test_pluckable.py index <HASH>..<HASH> 100755 --- a/tests/test_pluckable.py +++ b/tests/test_pluckable.py @@ -235,6 +235,9 @@ class TestPluckable(unittest.TestCase): Point = namedtuple("Point", "x y z") self.assertEqual(pluckable(Point(3, 2, 1)).x.value, 3)...
added test for pluckable iter
py
diff --git a/www/src/Lib/operator.py b/www/src/Lib/operator.py index <HASH>..<HASH> 100644 --- a/www/src/Lib/operator.py +++ b/www/src/Lib/operator.py @@ -127,8 +127,7 @@ __or__ = or_ def pos(a): "Same as +a." return +a #brython does not like - if a >= 0: return a - return -a + __pos__ = pos def...
Remove code unreachable after return
py
diff --git a/source/rafcon/gui/mygaphas/tools.py b/source/rafcon/gui/mygaphas/tools.py index <HASH>..<HASH> 100644 --- a/source/rafcon/gui/mygaphas/tools.py +++ b/source/rafcon/gui/mygaphas/tools.py @@ -106,14 +106,11 @@ class MoveItemTool(gaphas.tool.ItemTool): if self._move_name_v: yield InMotio...
refactor(MoveItemTool): Simplify movable_items
py
diff --git a/version.py b/version.py index <HASH>..<HASH> 100644 --- a/version.py +++ b/version.py @@ -1 +1 @@ -VERSION = '0.3.4' +VERSION = '0.3.5'
Update version to <I> with the addition of Table.split
py
diff --git a/mkapi.py b/mkapi.py index <HASH>..<HASH> 100644 --- a/mkapi.py +++ b/mkapi.py @@ -3,6 +3,8 @@ from numpydoc.docscrape import NumpyDocString, FunctionDoc, ClassDoc def get_all_modules_from_files(module, hide=["__init__", "_version"]): modules = set() + module_file = pathlib.Path(module.__file__)....
Deal with not being in same dir as module
py
diff --git a/plenum/client/client.py b/plenum/client/client.py index <HASH>..<HASH> 100644 --- a/plenum/client/client.py +++ b/plenum/client/client.py @@ -163,7 +163,7 @@ class Client(Motor, MessageProcessor, HasFileStorage, HasPoolManager): # has made sufficient connections to the nodes. self.reqsPen...
[#<I>] fixed indentation issue
py
diff --git a/cli/shinkenio/cli.py b/cli/shinkenio/cli.py index <HASH>..<HASH> 100644 --- a/cli/shinkenio/cli.py +++ b/cli/shinkenio/cli.py @@ -45,7 +45,11 @@ def read_package_json(fd): buf = fd.read() fd.close() buf = buf.decode('utf8', 'ignore') - package_json = json.loads(buf) + try: + pac...
Fix: cli publish crash when package.json is bad
py
diff --git a/semantic_release/__init__.py b/semantic_release/__init__.py index <HASH>..<HASH> 100644 --- a/semantic_release/__init__.py +++ b/semantic_release/__init__.py @@ -1,6 +1,6 @@ """Semantic Release """ -__version__ = '4.4.1' +__version__ = '4.5.0' from .errors import UnknownCommitMessageStyleError # no...
<I> Automatically generated by python-semantic-release
py
diff --git a/dvc/version.py b/dvc/version.py index <HASH>..<HASH> 100644 --- a/dvc/version.py +++ b/dvc/version.py @@ -6,7 +6,7 @@ import os import subprocess -_BASE_VERSION = "2.0.18" +_BASE_VERSION = "2.1.0" def _generate_version(base_version):
dvc: bump to <I>
py
diff --git a/glue/ligolw/ligolw.py b/glue/ligolw/ligolw.py index <HASH>..<HASH> 100644 --- a/glue/ligolw/ligolw.py +++ b/glue/ligolw/ligolw.py @@ -84,7 +84,7 @@ class Element(object): if not result: a = self.childNodes[:] a.sort() - b = self.childNodes[:] + b = other.childNodes[:] b.sort(...
Fix compare() method: child nodes not being tested correctly.
py
diff --git a/tests/test_bump_update_version_in_files.py b/tests/test_bump_update_version_in_files.py index <HASH>..<HASH> 100644 --- a/tests/test_bump_update_version_in_files.py +++ b/tests/test_bump_update_version_in_files.py @@ -126,6 +126,18 @@ def test_random_location(random_location_version_file): assert ...
fix(wip): add test for current breaking change
py
diff --git a/test/geocoders/geonames.py b/test/geocoders/geonames.py index <HASH>..<HASH> 100644 --- a/test/geocoders/geonames.py +++ b/test/geocoders/geonames.py @@ -96,7 +96,7 @@ class GeoNamesTestCase(GeocoderTestBase): }, {}, ) - self.assertIn('Берлин, Германия', location.a...
Geonames tests: fix failure on py2 due to unicode chars in a `str`
py
diff --git a/ImagePanel.py b/ImagePanel.py index <HASH>..<HASH> 100644 --- a/ImagePanel.py +++ b/ImagePanel.py @@ -1587,10 +1587,11 @@ class ImagePanel(object): mime_data.set_data_as_string("text/data_item_uuid", str(data_item.uuid)) root_canvas_item = self.canvas_item.root_container ...
Partially restructure drag and drop to use 'finished' callback rather than blocking. svn r<I>
py
diff --git a/sos/jupyter/sos_executor.py b/sos/jupyter/sos_executor.py index <HASH>..<HASH> 100755 --- a/sos/jupyter/sos_executor.py +++ b/sos/jupyter/sos_executor.py @@ -310,7 +310,7 @@ def runfile(script=None, args='', wdir='.', code=None, kernel=None, **kwargs): 'sig_mode': args.__sig_mode__, ...
Fix jupyter kernel for the removal of `resume`
py
diff --git a/test/test_kohlschuetter.py b/test/test_kohlschuetter.py index <HASH>..<HASH> 100644 --- a/test/test_kohlschuetter.py +++ b/test/test_kohlschuetter.py @@ -48,7 +48,6 @@ class TestBlockifier(KohlschuetterUnitBase): also handles case where lxml returns None for the tree""" # this raises an...
Remove newly failing lxml assertion
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ except ImportError: install_requires = [ "requests-oauthlib>=0.3.0", - "requests>=1.2.0", + "requests>=2.3.0", "python-dateutil>=2.1", ]
Bump requests version We need at least this version for the `is_redirect` attribute
py
diff --git a/vyper/__init__.py b/vyper/__init__.py index <HASH>..<HASH> 100644 --- a/vyper/__init__.py +++ b/vyper/__init__.py @@ -1,2 +1,14 @@ from vyper.compiler import compile_code, compile_codes # noqa: F401 -from vyper.version import version as __version__ + + +try: + from importlib.metadata import PackageNot...
fix: bug in usage of scm-setup (#<I>) The existing way doesn't work if setup.py hasn't been run yet. This way works both with pyinstaller and regular setup.py.
py
diff --git a/restclients/sws/v5/department.py b/restclients/sws/v5/department.py index <HASH>..<HASH> 100644 --- a/restclients/sws/v5/department.py +++ b/restclients/sws/v5/department.py @@ -8,7 +8,7 @@ from restclients.sws import get_resource logger = logging.getLogger(__name__) -dept_search_url_prefix = "/studen...
sws/v5/department fetches v5 resource
py
diff --git a/config.py b/config.py index <HASH>..<HASH> 100644 --- a/config.py +++ b/config.py @@ -11,7 +11,7 @@ conf = None if (os.path.exists("conf.json")): with open("conf.json") as json_file: conf = json.load(json_file) - print("INFO: Finished loading config:",conf) + print("INFO: Finis...
removed writing conf to stdout was concerned that critical information might go into logs, so removing this.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,7 @@ from distutils.core import setup -import codecs -with codecs.open('README.rst', encoding='utf-8') as f: - long_description = '\n'.join( [line for line in f] ) +with open('README.rst') as file: + long_desc...
simplify setup.py This is as close as possible to the example at <URL>
py
diff --git a/salt/grains/core.py b/salt/grains/core.py index <HASH>..<HASH> 100644 --- a/salt/grains/core.py +++ b/salt/grains/core.py @@ -739,6 +739,7 @@ def ip4(): ''' Return a list of ipv4 addrs ''' + ips = '' if salt.utils.is_windows(): # TODO: Add windows ip addrs here pass
Assign ips first. This was broken on Windows since ips was referenced in the return but was never created
py
diff --git a/rollbar/contrib/flask/__init__.py b/rollbar/contrib/flask/__init__.py index <HASH>..<HASH> 100644 --- a/rollbar/contrib/flask/__init__.py +++ b/rollbar/contrib/flask/__init__.py @@ -12,5 +12,9 @@ def report_exception(app, exception): payload_data = { 'framework': 'Flask', } + + if req...
report flask context @brianr
py
diff --git a/test/spider_error.py b/test/spider_error.py index <HASH>..<HASH> 100644 --- a/test/spider_error.py +++ b/test/spider_error.py @@ -1,5 +1,8 @@ -from grab.spider import Spider, Task +import mock + +from six import StringIO +from grab.spider import Spider, Task from test.util import BaseGrabTestCase, build...
Add test: spider should not generate warning
py
diff --git a/spacy/en/__init__.py b/spacy/en/__init__.py index <HASH>..<HASH> 100644 --- a/spacy/en/__init__.py +++ b/spacy/en/__init__.py @@ -95,15 +95,15 @@ class English(object): self.tokenizer = Tokenizer(self.vocab, path.join(data_dir, 'tokenizer')) - if Tagger: + if Tagger and p...
* Check for directory presence before loading annotators
py
diff --git a/pyrsistent.py b/pyrsistent.py index <HASH>..<HASH> 100644 --- a/pyrsistent.py +++ b/pyrsistent.py @@ -1179,14 +1179,13 @@ def freeze(o): typ = type(o) if typ is dict: return pmap({k: freeze(v) for k, v in six.iteritems(o)}) - elif typ is list: + if typ is list: return pvec...
make the if/return style consistent
py
diff --git a/kerncraft/cacheprediction.py b/kerncraft/cacheprediction.py index <HASH>..<HASH> 100755 --- a/kerncraft/cacheprediction.py +++ b/kerncraft/cacheprediction.py @@ -83,12 +83,14 @@ class LayerConditionPredictor(CachePredictor): raise ValueError("Only one loop counter may appear per te...
improved compatibility check in layer condition predictor
py
diff --git a/pyradio/main.py b/pyradio/main.py index <HASH>..<HASH> 100644 --- a/pyradio/main.py +++ b/pyradio/main.py @@ -50,9 +50,14 @@ def shell(): "Supported players: mpv, mplayer, vlc.") args = parser.parse_args() - print('Reading config...') sys.stdout.flush() pyradio_config = PyR...
-ls: moving it before reading config
py
diff --git a/pymc/distributions/discrete.py b/pymc/distributions/discrete.py index <HASH>..<HASH> 100644 --- a/pymc/distributions/discrete.py +++ b/pymc/distributions/discrete.py @@ -1,4 +1,5 @@ from .dist_math import * +import theano __all__ = ['Binomial', 'BetaBin', 'Bernoulli', 'Poisson', 'NegativeBinomial',...
Fixed bounds check failure in Categorical
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import setuptools setuptools.setup( name="Mongothon", - version="0.7.13", + version="0.7.14", author="Tom Leach", author_email="tom@gc.io", description="A MongoDB object-document mappi...
Use version <I> of schemer and bump the version number to <I> in the process
py
diff --git a/tracking/middleware.py b/tracking/middleware.py index <HASH>..<HASH> 100644 --- a/tracking/middleware.py +++ b/tracking/middleware.py @@ -2,6 +2,7 @@ import re import logging import warnings +from django.db import IntegrityError from django.utils import timezone from django.utils.encoding import smar...
Handle a small race condition in .save() for UPDATE/INSERT fallthrough weirdness
py
diff --git a/battlenet/things.py b/battlenet/things.py index <HASH>..<HASH> 100644 --- a/battlenet/things.py +++ b/battlenet/things.py @@ -511,16 +511,19 @@ class Equipment(Thing): class Build(Thing): def __init__(self, character, data): - NONE = 'None' - NOICON = 'inv_misc_questionmark' # The inf...
Update battlenet/things.py
py
diff --git a/citrination_client/data/tests/test_data_client.py b/citrination_client/data/tests/test_data_client.py index <HASH>..<HASH> 100644 --- a/citrination_client/data/tests/test_data_client.py +++ b/citrination_client/data/tests/test_data_client.py @@ -80,7 +80,7 @@ def test_dataset_update(): assert dataset....
Upping number of tries to check update status to prevent false failures
py
diff --git a/demosys/effect_templates/cube_simple/effect.py b/demosys/effect_templates/cube_simple/effect.py index <HASH>..<HASH> 100644 --- a/demosys/effect_templates/cube_simple/effect.py +++ b/demosys/effect_templates/cube_simple/effect.py @@ -1,3 +1,4 @@ +import moderngl as mgl from demosys.effects import effect ...
cube_simple effect modified to moderngl
py
diff --git a/parse_rest/query.py b/parse_rest/query.py index <HASH>..<HASH> 100644 --- a/parse_rest/query.py +++ b/parse_rest/query.py @@ -125,8 +125,13 @@ class Queryset(object): else: if operator == 'relatedTo': self._where['$' + operator] = parse_value - ...
Added informative error message for 'Cannot filter for a constraint after filtering for a specific value': e.g. filter(score=<I>).filter(score__lt=<I>).
py
diff --git a/skorch/tests/test_classifier.py b/skorch/tests/test_classifier.py index <HASH>..<HASH> 100644 --- a/skorch/tests/test_classifier.py +++ b/skorch/tests/test_classifier.py @@ -291,7 +291,7 @@ class TestNeuralNetBinaryClassifier: # we need to add a custom nonlinearity, otherwise the output won't be...
Fix: Don't use axis argument in torch.stack Fails in PyTorch <I> There was one more instance in a unit test that needed fixing.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,12 @@ setup( classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3.x', + 'Programming Language :: Pytho...
Adding classifiers for supported python versions
py