diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/local_settings/base.py b/local_settings/base.py index <HASH>..<HASH> 100644 --- a/local_settings/base.py +++ b/local_settings/base.py @@ -58,10 +58,13 @@ class Base(ColorPrinter): package, path = file_name.split(':', 1) file_name = pkg_resources.resource_filename(package, path) ...
Don't require a file name when extending a section in the same file E.g.: `extends = "#section"`
py
diff --git a/esptool.py b/esptool.py index <HASH>..<HASH> 100755 --- a/esptool.py +++ b/esptool.py @@ -460,7 +460,7 @@ if __name__ == '__main__': sys.stdout.flush() block = image[0:esp.ESP_FLASH_BLOCK] # Pad the last block - block = block + '\xe0' * (esp...
pad with 0xff to not confuse fw
py
diff --git a/oauthlib/oauth1/rfc5849/endpoints/authorization.py b/oauthlib/oauth1/rfc5849/endpoints/authorization.py index <HASH>..<HASH> 100644 --- a/oauthlib/oauth1/rfc5849/endpoints/authorization.py +++ b/oauthlib/oauth1/rfc5849/endpoints/authorization.py @@ -13,8 +13,10 @@ from oauthlib.common import Request, add_p...
Fix for python3.
py
diff --git a/pytimeparse/testtimeparse.py b/pytimeparse/testtimeparse.py index <HASH>..<HASH> 100644 --- a/pytimeparse/testtimeparse.py +++ b/pytimeparse/testtimeparse.py @@ -102,6 +102,10 @@ class TestTimeparse(unittest.TestCase): '''timeparse test case 7.''' self.assertEqual(timeparse.timeparse('4:1...
added a test for bare seconds
py
diff --git a/plenum/server/monitor.py b/plenum/server/monitor.py index <HASH>..<HASH> 100644 --- a/plenum/server/monitor.py +++ b/plenum/server/monitor.py @@ -279,15 +279,16 @@ class Monitor(HasActionQueue, PluginLoaderHelper): if r is None: logger.debug("{} master throughput is not measurable.". ...
refactor monitor.isMasterThroughputTooLow
py
diff --git a/src/tests/streamcorpus_pipeline/test_lingpipe.py b/src/tests/streamcorpus_pipeline/test_lingpipe.py index <HASH>..<HASH> 100644 --- a/src/tests/streamcorpus_pipeline/test_lingpipe.py +++ b/src/tests/streamcorpus_pipeline/test_lingpipe.py @@ -28,7 +28,7 @@ def test_aligner(): #for x in si.body.labels['...
improving lingpipe test by having it actually assert something
py
diff --git a/salt/modules/haproxyconn.py b/salt/modules/haproxyconn.py index <HASH>..<HASH> 100644 --- a/salt/modules/haproxyconn.py +++ b/salt/modules/haproxyconn.py @@ -299,6 +299,9 @@ def set_state(name, backend, state, socket=DEFAULT_SOCKET_URL): state A string of the state to set. Must be 'ready', 'd...
Added missing socket param docs for set_state in haproxy module
py
diff --git a/umap/settings/base.py b/umap/settings/base.py index <HASH>..<HASH> 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -130,6 +130,7 @@ TEMPLATE_CONTEXT_PROCESSORS += ( MIDDLEWARE_CLASSES += ( 'django.middleware.locale.LocaleMiddleware', + 'django.middleware.http.ConditionalGetMidd...
Add ConditionalGetMiddleware
py
diff --git a/src/proxy/models.py b/src/proxy/models.py index <HASH>..<HASH> 100644 --- a/src/proxy/models.py +++ b/src/proxy/models.py @@ -5,6 +5,8 @@ import urllib2 from django.conf import settings from django.db import models +from django.db.models.signals import post_save +from django.dispatch import receiver ...
adding model and signal to user post_save - closes #<I>
py
diff --git a/Lib/ufo2ft/postProcessor.py b/Lib/ufo2ft/postProcessor.py index <HASH>..<HASH> 100644 --- a/Lib/ufo2ft/postProcessor.py +++ b/Lib/ufo2ft/postProcessor.py @@ -155,7 +155,7 @@ class PostProcessor: if useProductionNames: logger.info("Renaming glyphs to final production names") ...
Add static method PostProcessor.rename_glyphs
py
diff --git a/lark/lexer.py b/lark/lexer.py index <HASH>..<HASH> 100644 --- a/lark/lexer.py +++ b/lark/lexer.py @@ -268,7 +268,7 @@ def build_mres(terminals, match_whole=False): return _build_mres(terminals, len(terminals), match_whole) def _regexp_has_newline(r): - """Expressions that may indicate newlines i...
Raw docstring to avoid escape warnings (Issue #<I>)
py
diff --git a/hack/boilerplate/boilerplate.py b/hack/boilerplate/boilerplate.py index <HASH>..<HASH> 100755 --- a/hack/boilerplate/boilerplate.py +++ b/hack/boilerplate/boilerplate.py @@ -79,7 +79,7 @@ def file_passes(filename, refs, regexs): if p.search(d): return False - # Replace all occurr...
Update verify boilerplate to support <I>
py
diff --git a/pp/channel.py b/pp/channel.py index <HASH>..<HASH> 100644 --- a/pp/channel.py +++ b/pp/channel.py @@ -199,7 +199,10 @@ class Channel(GenericChannel): data = ((self._data - self._data.min()) * 255.0 / (self._data.max() - self._data.min())) - img = pil.fromarray(np....
Bugfix: showing channels couldn't handle masked arrays.
py
diff --git a/tests/integration/test_requests.py b/tests/integration/test_requests.py index <HASH>..<HASH> 100644 --- a/tests/integration/test_requests.py +++ b/tests/integration/test_requests.py @@ -249,10 +249,8 @@ def test_nested_cassettes_with_session_created_before_nesting(httpbin_both, tmpd def test_post_file(tmp...
Multiple context managers supported in <I>+
py
diff --git a/examples/simple/graph.py b/examples/simple/graph.py index <HASH>..<HASH> 100644 --- a/examples/simple/graph.py +++ b/examples/simple/graph.py @@ -7,14 +7,14 @@ router = Router() def prefix(name): return '%s.%s' % (__name__, name) -@router.node(['word'], entry_point=True) +@router.node(('word',), en...
change list to tuples in simple example
py
diff --git a/pygeotools/lib/geolib.py b/pygeotools/lib/geolib.py index <HASH>..<HASH> 100755 --- a/pygeotools/lib/geolib.py +++ b/pygeotools/lib/geolib.py @@ -1769,7 +1769,7 @@ def xy2geom(x, y, t_srs=None): geom.AssignSpatialReference(t_srs) return geom -def get_dem_mosaic_cmd(fn_list, o, tr=None, t_sr...
geolib: allow stat for dem_mosaic
py
diff --git a/src/livestreamer/plugins/ustreamtv.py b/src/livestreamer/plugins/ustreamtv.py index <HASH>..<HASH> 100644 --- a/src/livestreamer/plugins/ustreamtv.py +++ b/src/livestreamer/plugins/ustreamtv.py @@ -154,12 +154,13 @@ class UHSStreamFiller(Thread): if not chunk_range: return - ...
plugins.ustreamtv: Improve initial load of UHS streams. Attempts to start at 3 chunks from the end instead of the last chunk. Since new chunks usually takes a few seconds to appear this improves initial buffering speed and playback experience.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -39,11 +39,11 @@ dev_requires = [ ] + build_requires + test_requires docs_requires = [ 'sphinx~=2.2', - 'sphinx-intl', + 'sphinx-intl>=2.0', 'sphinx_rtd_theme>=0.4.3', - 'sphinxcontrib-trio~=1.0.2', - '...
setup: Update sphinx extensions to their latests
py
diff --git a/discord/partial_emoji.py b/discord/partial_emoji.py index <HASH>..<HASH> 100644 --- a/discord/partial_emoji.py +++ b/discord/partial_emoji.py @@ -25,6 +25,8 @@ DEALINGS IN THE SOFTWARE. """ from .asset import Asset +from . import utils + class _EmojiTag: __slots__ = () @@ -77,7 +79,11 @@ class ...
Fix possibility of PartialEmoji.id being a string
py
diff --git a/tests/docker_mock.py b/tests/docker_mock.py index <HASH>..<HASH> 100644 --- a/tests/docker_mock.py +++ b/tests/docker_mock.py @@ -100,8 +100,13 @@ def mock_docker(build_should_fail=False, flexmock(docker.Client, start=lambda cid, **kwargs: None) flexmock(docker.Client, tag=lambda img, rep, **kwar...
Make result of mocked docker.Client.get_image have 'data' attribute
py
diff --git a/chess/__init__.py b/chess/__init__.py index <HASH>..<HASH> 100644 --- a/chess/__init__.py +++ b/chess/__init__.py @@ -1375,9 +1375,8 @@ class Board(object): Gets the game result. ``1-0``, ``0-1`` or ``1/2-1/2`` if the - :func:`game is over <chess.Board.is_game_over()>`. - - ...
Adjust Board.result() docs
py
diff --git a/parsl/providers/torque/torque.py b/parsl/providers/torque/torque.py index <HASH>..<HASH> 100644 --- a/parsl/providers/torque/torque.py +++ b/parsl/providers/torque/torque.py @@ -13,6 +13,7 @@ logger = logging.getLogger(__name__) # From the man pages for qstat for PBS/Torque systems translate_table = { ...
Add batch jobs to PBS/torque job status table (#<I>) This bug and fix was found by @ravihansa<I> and confirmed by @benclifford. Because array jobs report a 'B' instead of 'R' by the scheduler, these jobs are seen by parsl with unknown job state. Fixes #<I>.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ # File: setup. from setuptools import setup -with open('./README.md') as f: +with open('./README.md', encoding='utf8') as f: desc = f.read() setup(
fix(setup): open file with encoding
py
diff --git a/xigt/importers/toolbox.py b/xigt/importers/toolbox.py index <HASH>..<HASH> 100755 --- a/xigt/importers/toolbox.py +++ b/xigt/importers/toolbox.py @@ -20,7 +20,7 @@ class XigtImportError(Exception): def xigt_import(in_fh, out_fh): - tb = toolbox.open_toolbox_file(in_fh) + tb = toolbox.read_toolbo...
Update toolbox importer to current ver.
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -245,9 +245,9 @@ def mcache_server_actual(host, port='11211'): def mcache_server_docker(unused_port, docker, session_id): - docker.pull('memcached:latest') + docker.pull('memcache...
Use memcached:alpine instead of debian image
py
diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py index <HASH>..<HASH> 100644 --- a/sentry_sdk/tracing.py +++ b/sentry_sdk/tracing.py @@ -666,7 +666,7 @@ def has_tracing_enabled(options): # type: (Dict[str, Any]) -> bool """ Returns True if either traces_sample_rate or traces_sampler is - non...
delete reference to rate being non-zero (#<I>)
py
diff --git a/tests/integration/cloud/helpers/cloud_test_base.py b/tests/integration/cloud/helpers/cloud_test_base.py index <HASH>..<HASH> 100644 --- a/tests/integration/cloud/helpers/cloud_test_base.py +++ b/tests/integration/cloud/helpers/cloud_test_base.py @@ -19,6 +19,7 @@ from tests.support.runtests import RUNTIME_...
Added pretty yaml formatting to cloud-test logs
py
diff --git a/baron/render.py b/baron/render.py index <HASH>..<HASH> 100644 --- a/baron/render.py +++ b/baron/render.py @@ -687,6 +687,7 @@ class RenderWalker(object): function for the node and recursively for all its childs. At each recipe step, it will call methods that you can override to make a specif...
[doc] fix another docstring
py
diff --git a/livereload/server.py b/livereload/server.py index <HASH>..<HASH> 100644 --- a/livereload/server.py +++ b/livereload/server.py @@ -15,7 +15,7 @@ from tornado import escape from tornado import websocket from tornado.web import RequestHandler, Application from tornado.util import ObjectDict -from tornado.o...
Fix: Return <I> if a folder doesn't exist, don't traceback.
py
diff --git a/masonite/response.py b/masonite/response.py index <HASH>..<HASH> 100644 --- a/masonite/response.py +++ b/masonite/response.py @@ -90,7 +90,7 @@ class Response(Extendable): if isinstance(view, dict) or isinstance(view, list): return self.json(view) elif isinstance(view, Collec...
Wrapped serialized content by json() method from Response.
py
diff --git a/sevenbridges/models/project.py b/sevenbridges/models/project.py index <HASH>..<HASH> 100644 --- a/sevenbridges/models/project.py +++ b/sevenbridges/models/project.py @@ -43,7 +43,7 @@ class Project(Resource): root_folder = StringField(read_only=True) created_by = StringField(read_only=True) ...
Change read_only access to modified_on
py
diff --git a/imgaug/augmenters/color.py b/imgaug/augmenters/color.py index <HASH>..<HASH> 100644 --- a/imgaug/augmenters/color.py +++ b/imgaug/augmenters/color.py @@ -609,8 +609,7 @@ class MultiplyHueAndSaturation(WithHueAndSaturation): ) -def MultiplyHue(mul=(-1.0, 1.0), from_colorspace="RGB", name=None, ...
Switch MultiplyHue from function to class
py
diff --git a/quilt/refresh.py b/quilt/refresh.py index <HASH>..<HASH> 100644 --- a/quilt/refresh.py +++ b/quilt/refresh.py @@ -58,7 +58,7 @@ class Refresh(Command): orig_file = pc_dir + File(file_name) new_file = File(file_name) diff = Diff(orig_file, new_file) - ...
Redirect the diff output to the tmpfile
py
diff --git a/isso/views/comments.py b/isso/views/comments.py index <HASH>..<HASH> 100644 --- a/isso/views/comments.py +++ b/isso/views/comments.py @@ -887,7 +887,7 @@ class API(object): except ValueError: return BadRequest("limit should be integer") comments = self.comments.fetch(**args) ...
feed: remove trailing / from base URL This way, one can use "/" as base URL. This is only valid if we are sure that URI should always have a leading "/". Is that the case? Fix #<I>.
py
diff --git a/clean.py b/clean.py index <HASH>..<HASH> 100644 --- a/clean.py +++ b/clean.py @@ -5,8 +5,8 @@ def rmgeneric(path, __func__): __func__(path) #print 'Removed ', path return 1 - except OSError, (errno, strerror): - print 'Could not remove %s, %s' % (path,strerror) + ...
clen.py works in python <I>
py
diff --git a/django_tenants/tests/test_tenants.py b/django_tenants/tests/test_tenants.py index <HASH>..<HASH> 100644 --- a/django_tenants/tests/test_tenants.py +++ b/django_tenants/tests/test_tenants.py @@ -564,7 +564,7 @@ class TenantRenameSchemaTest(BaseTestCase): self.assertTrue(schema_exists(tenant.schema_...
Another fix for the rename test
py
diff --git a/ceam/modules/disease_models.py b/ceam/modules/disease_models.py index <HASH>..<HASH> 100644 --- a/ceam/modules/disease_models.py +++ b/ceam/modules/disease_models.py @@ -89,3 +89,6 @@ def stroke_factory(): module.states.extend([healthy, hemorrhagic_stroke, ischemic_stroke, chronic_stroke]) retu...
Cosmetic again: added "# End." to one file.
py
diff --git a/msk/repo_action.py b/msk/repo_action.py index <HASH>..<HASH> 100644 --- a/msk/repo_action.py +++ b/msk/repo_action.py @@ -96,8 +96,8 @@ class SkillData(GlobalContext): def add_to_repo(self) -> str: self.repo.msminfo.update() - elements = [i.split() for i in self.git.ls_tree('HEAD').s...
Fix issue with spaces in filenames in add_to_repo If a filename contained a space the split then parsing ls-tree result produced an extra field. This splits at the tab just before the filename instead of any whitespace.
py
diff --git a/tapes/distributed/registry.py b/tapes/distributed/registry.py index <HASH>..<HASH> 100644 --- a/tapes/distributed/registry.py +++ b/tapes/distributed/registry.py @@ -16,7 +16,7 @@ _DEFAULT_IPC = 'ipc://tapes_metrics.ipc' def _registry_aggregator(reporter, socket_addr): - context = zmq.Context().ins...
Make sure to use separate zmq.Context's for thread safety
py
diff --git a/aomi/model/aws.py b/aomi/model/aws.py index <HASH>..<HASH> 100644 --- a/aomi/model/aws.py +++ b/aomi/model/aws.py @@ -84,7 +84,7 @@ class AWS(Secret): if is_mounted(self.backend, self.mount, vault_client.list_secret_backends()): - self.exist...
always create aws credentials, since we cannot actualy verify
py
diff --git a/pandas/sparse/series.py b/pandas/sparse/series.py index <HASH>..<HASH> 100644 --- a/pandas/sparse/series.py +++ b/pandas/sparse/series.py @@ -378,7 +378,8 @@ to sparse @property def density(self): - return float(len(self.sp_index)) / len(self.index) + r = float(self.sp_index.npoin...
BUG: SparseSeries.density shouldn't die GH<I>
py
diff --git a/tests/test_csrf.py b/tests/test_csrf.py index <HASH>..<HASH> 100644 --- a/tests/test_csrf.py +++ b/tests/test_csrf.py @@ -20,3 +20,7 @@ def test_middleware_sets_csrf_cookie(): def test_middleware_shares_view(): assert 'csrf_field' in container.make('ViewClass').dictionary assert 'input' in conta...
added test to csrf class
py
diff --git a/master/buildbot/ec2buildslave.py b/master/buildbot/ec2buildslave.py index <HASH>..<HASH> 100644 --- a/master/buildbot/ec2buildslave.py +++ b/master/buildbot/ec2buildslave.py @@ -231,9 +231,9 @@ class EC2LatentBuildSlave(AbstractLatentBuildSlave): self.output.output)) if s...
Return 'success' if ec2 instance substantiates AbstractLatentBuildSlave expects start_instance to return a 'true' value to indicate success. This wasn't happening unless elastic ips were in use. This doesn't always cause a problem because the retry mechanism and an unhandled error put the state back the way it should ...
py
diff --git a/helga_youtube_meta/__init__.py b/helga_youtube_meta/__init__.py index <HASH>..<HASH> 100644 --- a/helga_youtube_meta/__init__.py +++ b/helga_youtube_meta/__init__.py @@ -1,3 +1,3 @@ -VERSION = (1, 0, 13) +VERSION = (1, 1, 0) __version__ = '.'.join([str(v) for v in VERSION])
-Increment version. A few quality of life improvements for settings, so getting a for realz minor bump
py
diff --git a/salt/utils/minion.py b/salt/utils/minion.py index <HASH>..<HASH> 100644 --- a/salt/utils/minion.py +++ b/salt/utils/minion.py @@ -24,7 +24,7 @@ def running(opts): data = _read_proc_file(path, opts) if data is not None: ret.append(data) - except IOError: + ...
Catch a hard crash when running highstate on windows - Workaround for issue #<I>
py
diff --git a/salt/modules/zpool.py b/salt/modules/zpool.py index <HASH>..<HASH> 100644 --- a/salt/modules/zpool.py +++ b/salt/modules/zpool.py @@ -693,8 +693,11 @@ def replace(zpool, old_device, new_device=None, force=False): return ret +@salt.utils.decorators.which('mkfile') def create_file_vdev(size, *vdevs...
use decorator for create_file_vdev, as it depends on mkfile
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -104,6 +104,18 @@ def test_random_forest_2(): assert np.array_equal(result['guess'].values, rfc.predict(testing_features)) +def test_random_forest_3(): + """Ensure that the TPOT random forest method outputs the sam...
Added test_random_forest_3
py
diff --git a/squad/core/tasks/__init__.py b/squad/core/tasks/__init__.py index <HASH>..<HASH> 100644 --- a/squad/core/tasks/__init__.py +++ b/squad/core/tasks/__init__.py @@ -414,18 +414,7 @@ class UpdateProjectStatus(object): @staticmethod def __call__(testrun): projectstatus = ProjectStatus.create_...
core: tasks: remove try-catch block of notification task The try-catch must have been a left over code from early versions of SQUAD. Either we wrap all tasks calls with try-catch or remove them all. If the AMQP server is offline, execution should stop anyways
py
diff --git a/system_tests/attempt_system_tests.py b/system_tests/attempt_system_tests.py index <HASH>..<HASH> 100644 --- a/system_tests/attempt_system_tests.py +++ b/system_tests/attempt_system_tests.py @@ -34,6 +34,7 @@ MODULES = ( 'storage', 'pubsub', 'bigquery', + 'bigtable', ) SCRIPTS_DIR = os.p...
Adding Bigtable system tests to list of default system tests.
py
diff --git a/tests/utils/test_dag_processing.py b/tests/utils/test_dag_processing.py index <HASH>..<HASH> 100644 --- a/tests/utils/test_dag_processing.py +++ b/tests/utils/test_dag_processing.py @@ -25,6 +25,8 @@ from tempfile import TemporaryDirectory from unittest import mock from unittest.mock import MagicMock, Pr...
Move parse_once to quarantine (#<I>)
py
diff --git a/ot/optim.py b/ot/optim.py index <HASH>..<HASH> 100644 --- a/ot/optim.py +++ b/ot/optim.py @@ -427,7 +427,7 @@ def solve_1d_linesearch_quad_funct(a, b, c): f1 = a + f0 + df0 if a > 0: # convex - minimum = min(1, max(0, -b / (2 * a))) + minimum = min(1, max(0, np.divide(-b, 2 * a))...
python2 divide problem
py
diff --git a/indra/tools/machine/cli.py b/indra/tools/machine/cli.py index <HASH>..<HASH> 100644 --- a/indra/tools/machine/cli.py +++ b/indra/tools/machine/cli.py @@ -70,6 +70,7 @@ def run_with_pmids(model_path, pmids): run_with_pmids_helper(model_path, pmids) +@main.command() @click.argument('model_path') @...
Add main.command [skip ci]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,6 @@ setup( 'Natural Language :: English', 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.2', 'Prog...
Remove python <I> from trove classifiers
py
diff --git a/clusters.py b/clusters.py index <HASH>..<HASH> 100644 --- a/clusters.py +++ b/clusters.py @@ -5,8 +5,6 @@ import pandas as pd from astropy.cosmology import Planck13 as cosmo from astropy import units -import sys -sys.path.insert(1,'/Users/jesford/astrophysics/cofm') #temporary path adjust from cofm im...
remove temp adjust to pythonpath
py
diff --git a/util.py b/util.py index <HASH>..<HASH> 100644 --- a/util.py +++ b/util.py @@ -441,8 +441,8 @@ def parse_args(cfg): module you are developing easily. To escape a pause point, hit the "CTRL" and the "]" key simultaneously. ==========================================================================...
remove pause point when it's too early for it
py
diff --git a/test/test_newrpc_novacompat.py b/test/test_newrpc_novacompat.py index <HASH>..<HASH> 100644 --- a/test/test_newrpc_novacompat.py +++ b/test/test_newrpc_novacompat.py @@ -1,19 +1,29 @@ import eventlet eventlet.monkey_patch() -from nova import context -from nova import rpc -from nova import flags +import...
skip nova compat tests in absence of essex nova
py
diff --git a/enlighten/_counter.py b/enlighten/_counter.py index <HASH>..<HASH> 100644 --- a/enlighten/_counter.py +++ b/enlighten/_counter.py @@ -39,7 +39,7 @@ try: SERIES_STD.encode(sys.__stdout__.encoding) except UnicodeEncodeError: # pragma: no cover(Non-unicode Terminal) SERIES_STD = u' |' -except Attr...
Account for unsupported encoding value
py
diff --git a/sk_dsp_comm/sigsys.py b/sk_dsp_comm/sigsys.py index <HASH>..<HASH> 100644 --- a/sk_dsp_comm/sigsys.py +++ b/sk_dsp_comm/sigsys.py @@ -2027,9 +2027,12 @@ def eye_plot(x,L,S=0): Examples -------- - >>> # 1000 bits at 10 samples per bit with 'rc' shaping - >>> x,b, data = NRZ_bits(1000,1...
Adding imports for eye_plot
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -18,6 +18,7 @@ import os import os.path +import sys from setuptools import setup, find_packages # Setup documentation incorrectly states that it will search for packages @@ -55,6 +56,10 @@ if script_folder != current_...
Use 2to3 fixers when building via 'setup.py'. This adds a dependency on the Python 3 version of setuptools when running under Python 3. This should not be a problem since the Python 2 version also depends on setuptools.
py
diff --git a/misc/management/__init__.py b/misc/management/__init__.py index <HASH>..<HASH> 100644 --- a/misc/management/__init__.py +++ b/misc/management/__init__.py @@ -12,5 +12,7 @@ def sync_site(app, created_models, verbosity, **kwargs): site.save() except Site.DoesNotExist: # In case if Site table do...
set SITE_DOMAIN, SITE_NAME not required in settings
py
diff --git a/pyownet/protocol.py b/pyownet/protocol.py index <HASH>..<HASH> 100644 --- a/pyownet/protocol.py +++ b/pyownet/protocol.py @@ -297,8 +297,15 @@ class OwnetConnection(object): tohead = _ToServerHeader(payload=len(payload), type=type, flags=flags, size=size, offset=offset) self...
Add support for handling ping responses on long op's When owserver is busy (i.e. high load/contention, or long ops), it will send ping frames every second or so.
py
diff --git a/dictmysql.py b/dictmysql.py index <HASH>..<HASH> 100755 --- a/dictmysql.py +++ b/dictmysql.py @@ -373,8 +373,9 @@ class DictMySQL: if not isinstance(value, (list, tuple)): raise TypeError('Input value should be a list or tuple') + # Cannot add semicolon here, otherwise it wil...
Remove semicolon for insertmany method
py
diff --git a/angr/path.py b/angr/path.py index <HASH>..<HASH> 100644 --- a/angr/path.py +++ b/angr/path.py @@ -255,7 +255,8 @@ class Path(object): self._error = AngrPathError('path has a failure jumpkind of %s' % self.jumpkinds[-1]) else: try: - self._make_sim_run() + ...
Do not regenerate Path._run when error() is called.
py
diff --git a/pyqode/cobol/widgets/pic_offsets.py b/pyqode/cobol/widgets/pic_offsets.py index <HASH>..<HASH> 100644 --- a/pyqode/cobol/widgets/pic_offsets.py +++ b/pyqode/cobol/widgets/pic_offsets.py @@ -12,6 +12,9 @@ class PicOffsetsTable(QtWidgets.QTableWidget): self.setColumnCount(4) self.setHorizon...
OffsetCalculator GUI improvements Single row selection and disable edit triggers
py
diff --git a/codenerix/views.py b/codenerix/views.py index <HASH>..<HASH> 100644 --- a/codenerix/views.py +++ b/codenerix/views.py @@ -3346,6 +3346,7 @@ class GenForeignKey(GenBase, View): search = kwargs.get('search', '') filterstxt = self.request.GET.get('filter', '{}') filters = json.loads...
GenForeignKey filters added to a variable in the instance
py
diff --git a/appkit/app.py b/appkit/app.py index <HASH>..<HASH> 100755 --- a/appkit/app.py +++ b/appkit/app.py @@ -224,9 +224,14 @@ class App(object): print 'on_web_frame_resource_load_failed' def run(self): - html = self._url_map_to_function('/') + result = self._url_map_to_function('...
Fix run() to handle result from function correctly
py
diff --git a/frontend/psort.py b/frontend/psort.py index <HASH>..<HASH> 100755 --- a/frontend/psort.py +++ b/frontend/psort.py @@ -321,7 +321,7 @@ if __name__ == '__main__': version='log2timeline - psort version %s' % __version__, help='Show the current version of psort.') ...
Forgot to include the updated comment in psort.
py
diff --git a/uni_form/templatetags/uni_form_filters.py b/uni_form/templatetags/uni_form_filters.py index <HASH>..<HASH> 100644 --- a/uni_form/templatetags/uni_form_filters.py +++ b/uni_form/templatetags/uni_form_filters.py @@ -47,5 +47,5 @@ def uni_form_setup(context): these files are loaded. """ if 'STA...
Missed to convert one MEDIA_URL into STATIC_URL
py
diff --git a/abydos/bm.py b/abydos/bm.py index <HASH>..<HASH> 100644 --- a/abydos/bm.py +++ b/abydos/bm.py @@ -412,7 +412,8 @@ def language_index_from_code(code, name_mode): return code -def bmpm(word, language_arg='', name_mode='gen', match_mode='approx'): +def bmpm(word, language_arg='', name_mode='gen', mat...
added concat argument to bmpm
py
diff --git a/lib/svtplay_dl/fetcher/dash.py b/lib/svtplay_dl/fetcher/dash.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/fetcher/dash.py +++ b/lib/svtplay_dl/fetcher/dash.py @@ -76,6 +76,7 @@ def parsesegments(content, url): init = vinit.attrib["initialization"] nrofvideos = content[0].findall(".//{u...
dash: don't crash if we get a total files. fixes #<I>
py
diff --git a/h2o-py/tests/pyunit_utils/utilsPY.py b/h2o-py/tests/pyunit_utils/utilsPY.py index <HASH>..<HASH> 100644 --- a/h2o-py/tests/pyunit_utils/utilsPY.py +++ b/h2o-py/tests/pyunit_utils/utilsPY.py @@ -356,8 +356,11 @@ def expect_model_param(models, attribute_name, expected_values): expected_values_len = len(...
PUBDEV-<I> Accommodate rounding of parameters in test utility
py
diff --git a/py/selenium/webdriver/remote/webdriver.py b/py/selenium/webdriver/remote/webdriver.py index <HASH>..<HASH> 100644 --- a/py/selenium/webdriver/remote/webdriver.py +++ b/py/selenium/webdriver/remote/webdriver.py @@ -1341,7 +1341,7 @@ class WebDriver(BaseWebDriver): """ return self.get_scree...
[py] Fix return type hint in get_screenshot_as_png (#<I>) get_screenshot_as_png returns a bytes object but the return type hint is set to str. This causes IDEs to throw warning when using this function with io.BytesIO (or any other function that expects bytes object)
py
diff --git a/telethon/network/mtproto_sender.py b/telethon/network/mtproto_sender.py index <HASH>..<HASH> 100644 --- a/telethon/network/mtproto_sender.py +++ b/telethon/network/mtproto_sender.py @@ -155,7 +155,7 @@ class MtProtoSender: :param message: the TLMessage to be sent. """ plain_text ...
Fix session ID is also signed since d4d7aa9
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ f.close() setup( name='name-cleaver', - version='0.2.6', + version='0.2.7', description='Name parser and formatter (for politicians, individuals, and organizations)', long_description=readm...
Minor version bump to <I>
py
diff --git a/pymod2pkg/__init__.py b/pymod2pkg/__init__.py index <HASH>..<HASH> 100644 --- a/pymod2pkg/__init__.py +++ b/pymod2pkg/__init__.py @@ -155,6 +155,7 @@ RDO_PKG_MAP = [ SingleRule('networking-vsphere', 'openstack-neutron-vsphere'), SingleRule('m2crypto', 'm2crypto'), SingleRule('libvirt-python'...
Add mapping of tempest-horizon for RDO * tempest-horizon is tempest plugin for Horizon project and its name is not similar with other tempest plugins. so we need to define mapping for the same. Change-Id: I<I>c<I>e<I>d<I>fe9d<I>c<I>a<I>e<I>
py
diff --git a/idigbio/json_client.py b/idigbio/json_client.py index <HASH>..<HASH> 100644 --- a/idigbio/json_client.py +++ b/idigbio/json_client.py @@ -278,13 +278,16 @@ class iDbApiJson(object): log.debug("POSTing: %r\n%s", slug, body) r = self.s.post(api_url + slug, data=body)...
seek files before sending, especially for retries.
py
diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py index <HASH>..<HASH> 100644 --- a/salt/utils/parsers.py +++ b/salt/utils/parsers.py @@ -560,6 +560,8 @@ class LogLevelMixIn(object): log.setup_console_logger( self.config['log_level'], log_format=logfmt, date_format=datefmt ) + ...
Granular levels show also be set when setting up the console logger. When configuring the log file logging this same operation will be executed again, but it's not an expensive operation.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -22,6 +22,7 @@ setup( 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ...
Declare support for Python <I>
py
diff --git a/bika/lims/content/analysisservice.py b/bika/lims/content/analysisservice.py index <HASH>..<HASH> 100644 --- a/bika/lims/content/analysisservice.py +++ b/bika/lims/content/analysisservice.py @@ -1393,7 +1393,7 @@ class AnalysisService(BaseContent, HistoryAwareMixin): items.sort(lambda x, y: cmp(x[1...
Replace getSelfVerificationEnabled for isSelfVerificationEnabled
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -166,7 +166,7 @@ class BaseCalculator(metaclass=abc.ABCMeta): self._monitor.hdf5 = self.datastore.hdf5 self.set_log_...
[skip CI] Former-commit-id: bbac<I>f<I>ce<I>aefb7e<I>dbdac2bd<I>c<I>ec
py
diff --git a/tests/test_isort.py b/tests/test_isort.py index <HASH>..<HASH> 100644 --- a/tests/test_isort.py +++ b/tests/test_isort.py @@ -537,6 +537,7 @@ def test_output_modes() -> None: test_output = SortImports(file_contents=test_input, line_length=100).output assert test_output == test_input + def test...
Add missing new line between functions (Pep8 requirement) to test_isort
py
diff --git a/glim/dispatch.py b/glim/dispatch.py index <HASH>..<HASH> 100644 --- a/glim/dispatch.py +++ b/glim/dispatch.py @@ -118,39 +118,15 @@ class Glim(object): endpoint, values = adapter.match() mcontroller = import_module('app.controllers') - # detect filters - fi...
remove route level filters, improve restful detection
py
diff --git a/tests/test_stream.py b/tests/test_stream.py index <HASH>..<HASH> 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -4105,18 +4105,18 @@ class TestStanzaStreamSM(StanzaStreamTestBase): self.stream.sm_resumable def test_sm_ping_automatic(self): - self.stream.ping_inte...
tests: increase timeouts in test_sm_ping_automatic This is further hardening against spurious timeouts in travis.
py
diff --git a/mktplace/transactions/market_place.py b/mktplace/transactions/market_place.py index <HASH>..<HASH> 100644 --- a/mktplace/transactions/market_place.py +++ b/mktplace/transactions/market_place.py @@ -274,20 +274,21 @@ def _prepare_genesis_transactions(journal): class MarketPlaceGlobalStore(global_store_...
Add the readonly flag for the MarketPlace state store.
py
diff --git a/flake8_import_order_fuzeman.py b/flake8_import_order_fuzeman.py index <HASH>..<HASH> 100644 --- a/flake8_import_order_fuzeman.py +++ b/flake8_import_order_fuzeman.py @@ -15,6 +15,7 @@ class Fuzeman(Style): from_importable_standard_librarires = frozenset([ 'argparse', 'collections', +...
`from ... import ...` is now permitted for `contextlib`
py
diff --git a/ceph_deploy/hosts/remotes.py b/ceph_deploy/hosts/remotes.py index <HASH>..<HASH> 100644 --- a/ceph_deploy/hosts/remotes.py +++ b/ceph_deploy/hosts/remotes.py @@ -41,14 +41,14 @@ def machine_type(): return platform.machine() -def write_sources_list(url, codename, filename='ceph.list'): +def write_s...
[RM-<I>] Allow a file mode when writing apt repo
py
diff --git a/ca/django_ca/management/commands/regenerate_ocsp_keys.py b/ca/django_ca/management/commands/regenerate_ocsp_keys.py index <HASH>..<HASH> 100644 --- a/ca/django_ca/management/commands/regenerate_ocsp_keys.py +++ b/ca/django_ca/management/commands/regenerate_ocsp_keys.py @@ -17,6 +17,8 @@ from django.core.ma...
potentially use celery for regenerating OCSP keys
py
diff --git a/pynipap/pynipap.py b/pynipap/pynipap.py index <HASH>..<HASH> 100644 --- a/pynipap/pynipap.py +++ b/pynipap/pynipap.py @@ -879,7 +879,7 @@ class Prefix(Pynipap): - def remove(self): + def remove(self, recursive = False): """ Remove the prefix. """ @@ -887,6 +887,7 @@ class Pr...
Add recursive option to remove_prefix Not sure if this is really correct since a Prefix object handles a single object while this would remove more than one prefix... does that break some form of Python object religion? Part of #<I>
py
diff --git a/pnc_cli/keycloak_config.py b/pnc_cli/keycloak_config.py index <HASH>..<HASH> 100644 --- a/pnc_cli/keycloak_config.py +++ b/pnc_cli/keycloak_config.py @@ -8,6 +8,14 @@ class KeycloakConfig(): self.parse_realm(config) self.parse_url(config) + def __getstate__(self): + # things t...
add pickling skeletons to keycloak_config.py (may not be needed)
py
diff --git a/astral/test/test_GoogleGeocoder.py b/astral/test/test_GoogleGeocoder.py index <HASH>..<HASH> 100644 --- a/astral/test/test_GoogleGeocoder.py +++ b/astral/test/test_GoogleGeocoder.py @@ -3,7 +3,7 @@ from astral import GoogleGeocoder def test_GoogleLocator(): locator = GoogleGeocoder() l = locat...
Added a 'pass' statement to allow adding a debugger breakpoint
py
diff --git a/anonymoususage/api.py b/anonymoususage/api.py index <HASH>..<HASH> 100644 --- a/anonymoususage/api.py +++ b/anonymoususage/api.py @@ -97,7 +97,7 @@ class StateView(TrackableView): GET: states/ \n states/{trackable_name}/{?attribute} \n PUT: states/{trackable_name}/set/{va...
fixed incorrect API help for states POST
py
diff --git a/amaascore/parties/utils.py b/amaascore/parties/utils.py index <HASH>..<HASH> 100644 --- a/amaascore/parties/utils.py +++ b/amaascore/parties/utils.py @@ -30,6 +30,8 @@ def json_to_party(json_to_convert): collection[child_type] = child json_to_convert[collection_name] = collection ...
Add some extra protection against missing party types. The merge went fine.
py
diff --git a/pre_commit/main.py b/pre_commit/main.py index <HASH>..<HASH> 100644 --- a/pre_commit/main.py +++ b/pre_commit/main.py @@ -1,6 +1,7 @@ from __future__ import unicode_literals import argparse +import os import sys import pkg_resources @@ -15,6 +16,13 @@ from pre_commit.error_handler import error_hand...
Make isolated environments more isolated under OSX and pyvenv. Resolves #<I>.
py
diff --git a/django_mailbox/admin.py b/django_mailbox/admin.py index <HASH>..<HASH> 100644 --- a/django_mailbox/admin.py +++ b/django_mailbox/admin.py @@ -64,6 +64,12 @@ class MessageAdmin(admin.ModelAdmin): def subject(self, msg): return convert_header_to_unicode(msg.subject) + def envelope_headers(...
Adding envelope headers to the Admin interface.
py
diff --git a/mock-recipe-server/test_mock_server.py b/mock-recipe-server/test_mock_server.py index <HASH>..<HASH> 100644 --- a/mock-recipe-server/test_mock_server.py +++ b/mock-recipe-server/test_mock_server.py @@ -15,13 +15,19 @@ def test_testcase_difference(root_path): for testcase_path in testcase_paths: ...
Handle error testcases in mock-server tests.
py
diff --git a/gtkmvco/gtkmvc/model.py b/gtkmvco/gtkmvc/model.py index <HASH>..<HASH> 100644 --- a/gtkmvco/gtkmvc/model.py +++ b/gtkmvco/gtkmvc/model.py @@ -49,7 +49,7 @@ class Model (Observer): *Value properties* have to exist as an attribute with an initial value, which may be ``None``. - *Logic...
MINOR Fixed a typo in a comment
py
diff --git a/thoth/solver/python/base.py b/thoth/solver/python/base.py index <HASH>..<HASH> 100644 --- a/thoth/solver/python/base.py +++ b/thoth/solver/python/base.py @@ -310,6 +310,6 @@ def get_ecosystem_solver(ecosystem_name, parser_kwargs=None, fetcher_kwargs=None if ecosystem_name.lower() == "pypi": ...
Fix issue when fetcher kwargs are set to None
py
diff --git a/tests/unix/ffi_float.py b/tests/unix/ffi_float.py index <HASH>..<HASH> 100644 --- a/tests/unix/ffi_float.py +++ b/tests/unix/ffi_float.py @@ -26,7 +26,7 @@ strtod = libc.func("d", "strtod", "sp") print('%.6f' % strtod('1.23', None)) # test passing double and float args -libm = ffi_open(('libm.so', 'lib...
tests: For unix ffi float test, add libm.so<I> to library search list. Latest Arch Linux doesn't have libm.so as a proper shared object and so we need to load libm.so<I>.
py
diff --git a/nudibranch/diff_render.py b/nudibranch/diff_render.py index <HASH>..<HASH> 100644 --- a/nudibranch/diff_render.py +++ b/nudibranch/diff_render.py @@ -131,8 +131,8 @@ class HTMLDiff(difflib.HtmlDiff): TD_DIFF_HEADER = '<td class="diff_header"{0}>{1}</td>\ <td style="white-space:nowrap{2}">{3}</td>...
Clicking "Show All" or "Hide All" will no longer jump to the top of the page.
py
diff --git a/kafka/client.py b/kafka/client.py index <HASH>..<HASH> 100644 --- a/kafka/client.py +++ b/kafka/client.py @@ -349,8 +349,8 @@ class KafkaClient(object): resp = self.send_metadata_request(topics) - log.debug('Received new broker metadata: %s', resp.brokers) - log.debug('Received n...
KafkaClient log new broker and topic metadata received as INFO
py